Class ShardFetchRequest

java.lang.Object
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.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 java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class TransportRequest
      Throws:
      java.io.IOException
    • 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, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,​java.lang.String> 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 java.lang.String 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()