Streamable
, Writeable
public final class ScrollQuerySearchResult extends SearchPhaseResult
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
requestId
Constructor | Description |
---|---|
ScrollQuerySearchResult() |
|
ScrollQuerySearchResult(QuerySearchResult result,
SearchShardTarget shardTarget) |
Modifier and Type | Method | Description |
---|---|---|
QuerySearchResult |
queryResult() |
Returns the query result iff it's included in this response otherwise
null |
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
|
void |
setShardIndex(int shardIndex) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetchResult, getRequestId, getSearchShardTarget, getShardIndex
remoteAddress, remoteAddress
public ScrollQuerySearchResult()
public ScrollQuerySearchResult(QuerySearchResult result, SearchShardTarget shardTarget)
public void setSearchShardTarget(SearchShardTarget shardTarget)
setSearchShardTarget
in class SearchPhaseResult
public void setShardIndex(int shardIndex)
setShardIndex
in class SearchPhaseResult
public QuerySearchResult queryResult()
SearchPhaseResult
null
queryResult
in class SearchPhaseResult
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportMessage
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class TransportMessage
java.io.IOException