public final class ScrollQueryFetchSearchResult extends SearchPhaseResult
TransportResponse.EmptyrequestId| Constructor and Description |
|---|
ScrollQueryFetchSearchResult() |
ScrollQueryFetchSearchResult(QueryFetchSearchResult result,
SearchShardTarget shardTarget) |
| Modifier and Type | Method and Description |
|---|---|
FetchSearchResult |
fetchResult()
Returns the fetch result iff it's included in this response otherwise
null |
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.
|
QueryFetchSearchResult |
result() |
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
void |
setShardIndex(int shardIndex) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getRequestId, getSearchShardTarget, getShardIndexremoteAddress, remoteAddresspublic ScrollQueryFetchSearchResult()
public ScrollQueryFetchSearchResult(QueryFetchSearchResult result, SearchShardTarget shardTarget)
public QueryFetchSearchResult result()
public void setSearchShardTarget(SearchShardTarget shardTarget)
setSearchShardTarget in class SearchPhaseResultpublic void setShardIndex(int shardIndex)
setShardIndex in class SearchPhaseResultpublic QuerySearchResult queryResult()
SearchPhaseResultnullqueryResult in class SearchPhaseResultpublic FetchSearchResult fetchResult()
SearchPhaseResultnullfetchResult 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 class TransportMessagejava.io.IOException