public final class QueryFetchSearchResult extends SearchPhaseResult
TransportResponse.EmptyrequestId| Constructor and Description |
|---|
QueryFetchSearchResult() |
QueryFetchSearchResult(QuerySearchResult queryResult,
FetchSearchResult fetchResult) |
| Modifier and Type | Method and Description |
|---|---|
FetchSearchResult |
fetchResult()
Returns the fetch result iff it's included in this response otherwise
null |
long |
getRequestId()
Returns the results request ID that is used to reference the search context on the executing
node
|
SearchShardTarget |
getSearchShardTarget() |
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.
|
static QueryFetchSearchResult |
readQueryFetchSearchResult(StreamInput in) |
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
void |
setShardIndex(int requestIndex) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getShardIndexremoteAddress, remoteAddresspublic QueryFetchSearchResult()
public QueryFetchSearchResult(QuerySearchResult queryResult, FetchSearchResult fetchResult)
public long getRequestId()
SearchPhaseResultgetRequestId in class SearchPhaseResultpublic SearchShardTarget getSearchShardTarget()
getSearchShardTarget in class SearchPhaseResultpublic void setSearchShardTarget(SearchShardTarget shardTarget)
setSearchShardTarget in class SearchPhaseResultpublic void setShardIndex(int requestIndex)
setShardIndex in class SearchPhaseResultpublic QuerySearchResult queryResult()
SearchPhaseResultnullqueryResult in class SearchPhaseResultpublic FetchSearchResult fetchResult()
SearchPhaseResultnullfetchResult in class SearchPhaseResultpublic static QueryFetchSearchResult readQueryFetchSearchResult(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic 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