Class ShardFetchRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest
Direct Known Subclasses:
ShardFetchSearchRequest

public class ShardFetchRequest extends TransportRequest
Shard level fetch base request. Holds all the info needed to execute a fetch. Used with search scroll as the original request doesn't hold indices.
  • Constructor Details

    • ShardFetchRequest

      public ShardFetchRequest(ShardSearchContextId contextId, com.carrotsearch.hppc.IntArrayList list, org.apache.lucene.search.ScoreDoc lastEmittedDoc)
    • ShardFetchRequest

      public ShardFetchRequest(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class TransportRequest
      Throws:
    • contextId

      public ShardSearchContextId contextId()
    • docIds

      public int[] docIds()
    • docIdsSize

      public int docIdsSize()
    • lastEmittedDoc

      public org.apache.lucene.search.ScoreDoc lastEmittedDoc()
    • createTask

      public Task createTask(long id,  type,  action, TaskId parentTaskId, <,​> headers)
      Description copied from interface: TaskAwareRequest
      Returns the task object that should be used to keep track of the processing of the request.
    • getDescription

      public  getDescription()
      Description copied from interface: TaskAwareRequest
      Returns optional description of the request to be displayed by the task manager
    • getShardSearchRequest

      @Nullable public ShardSearchRequest getShardSearchRequest()
    • getRescoreDocIds

      @Nullable public RescoreDocIds getRescoreDocIds()
    • getAggregatedDfs

      @Nullable public AggregatedDfs getAggregatedDfs()