Streamable, Writeable, TaskAwareRequestShardFetchSearchRequestpublic class ShardFetchRequest extends TransportRequest
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Constructor | Description |
|---|---|
ShardFetchRequest() |
|
ShardFetchRequest(long id,
com.carrotsearch.hppc.IntArrayList list,
org.apache.lucene.search.ScoreDoc lastEmittedDoc) |
| Modifier and Type | Method | Description |
|---|---|---|
Task |
createTask(long id,
java.lang.String type,
java.lang.String action,
TaskId parentTaskId,
java.util.Map<java.lang.String,java.lang.String> headers) |
Returns the task object that should be used to keep track of the processing of the request.
|
int[] |
docIds() |
|
int |
docIdsSize() |
|
java.lang.String |
getDescription() |
Returns optional description of the request to be displayed by the task manager
|
long |
id() |
|
org.apache.lucene.search.ScoreDoc |
lastEmittedDoc() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReadersetParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic ShardFetchRequest()
public ShardFetchRequest(long id,
com.carrotsearch.hppc.IntArrayList list,
org.apache.lucene.search.ScoreDoc lastEmittedDoc)
public long id()
public int[] docIds()
public int docIdsSize()
public org.apache.lucene.search.ScoreDoc lastEmittedDoc()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class TransportRequestjava.io.IOExceptionpublic Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)
TaskAwareRequestpublic java.lang.String getDescription()
TaskAwareRequest