Class RpcSearchInvoker

  • All Implemented Interfaces:
    com.yahoo.search.dispatch.rpc.Client.ResponseReceiver, java.io.Closeable, java.lang.AutoCloseable

    public class RpcSearchInvoker
    extends SearchInvoker
    implements com.yahoo.search.dispatch.rpc.Client.ResponseReceiver
    SearchInvoker implementation using RPC
    Author:
    ollivir
    • Method Detail

      • sendSearchRequest

        protected java.lang.Object sendSearchRequest​(Query query,
                                                     java.lang.Object incomingContext)
        Specified by:
        sendSearchRequest in class SearchInvoker
        Parameters:
        query - the query to send
        incomingContext - a context object that can be used to pass context among different invokers, e.g for reuse of preserialized data.
        Returns:
        an object that can be passed to the next invocation of sendSearchRequest
      • receive

        public void receive​(com.yahoo.search.dispatch.rpc.Client.ResponseOrError<com.yahoo.search.dispatch.rpc.Client.ProtobufResponse> response)
        Specified by:
        receive in interface com.yahoo.search.dispatch.rpc.Client.ResponseReceiver