public final class ScrollQuerySearchResult extends SearchPhaseResult
TransportResponse.Empty
requestId
Constructor and Description |
---|
ScrollQuerySearchResult() |
ScrollQuerySearchResult(QuerySearchResult result,
SearchShardTarget shardTarget) |
Modifier and Type | Method and 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.
|
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 class TransportMessage
java.io.IOException