Class RpcSearchInvoker

All Implemented Interfaces:
com.yahoo.search.dispatch.rpc.Client.ResponseReceiver, Closeable, AutoCloseable

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

    • sendSearchRequest

      protected Object sendSearchRequest(Query query, 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
    • getSearchResult

      protected InvokerResult getSearchResult(Execution execution) throws IOException
      Specified by:
      getSearchResult in class SearchInvoker
      Throws:
      IOException
    • release

      protected void release()
      Specified by:
      release in class CloseableInvoker
    • 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