Streamable, Writeablepublic final class ScrollQuerySearchResult extends SearchPhaseResult
TransportResponse.EmptyWriteable.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, waitfetchResult, getRequestId, getSearchShardTarget, getShardIndexremoteAddress, remoteAddresspublic ScrollQuerySearchResult()
public ScrollQuerySearchResult(QuerySearchResult result, SearchShardTarget shardTarget)
public void setSearchShardTarget(SearchShardTarget shardTarget)
setSearchShardTarget in class SearchPhaseResultpublic void setShardIndex(int shardIndex)
setShardIndex in class SearchPhaseResultpublic QuerySearchResult queryResult()
SearchPhaseResultnullqueryResult in class SearchPhaseResultpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportMessagejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class TransportMessagejava.io.IOException