public class QueryFetchSearchResult extends QuerySearchResultProvider implements FetchSearchResultProvider
TransportResponse.Emptyheaders| Constructor and Description |
|---|
QueryFetchSearchResult() |
QueryFetchSearchResult(QuerySearchResult queryResult,
FetchSearchResult fetchResult) |
| Modifier and Type | Method and Description |
|---|---|
FetchSearchResult |
fetchResult() |
long |
id() |
boolean |
includeFetch()
If both query and fetch happened on the same call.
|
QuerySearchResult |
queryResult() |
void |
readFrom(StreamInput in) |
static QueryFetchSearchResult |
readQueryFetchSearchResult(StreamInput in) |
SearchShardTarget |
shardTarget() |
void |
shardTarget(SearchShardTarget shardTarget) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic QueryFetchSearchResult()
public QueryFetchSearchResult(QuerySearchResult queryResult, FetchSearchResult fetchResult)
public long id()
id in interface SearchPhaseResultpublic SearchShardTarget shardTarget()
shardTarget in interface SearchPhaseResultpublic void shardTarget(SearchShardTarget shardTarget)
shardTarget in interface SearchPhaseResultpublic boolean includeFetch()
QuerySearchResultProviderincludeFetch in class QuerySearchResultProviderpublic QuerySearchResult queryResult()
queryResult in class QuerySearchResultProviderpublic FetchSearchResult fetchResult()
fetchResult in interface FetchSearchResultProviderpublic static QueryFetchSearchResult readQueryFetchSearchResult(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportResponse>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportResponse>IOExceptionCopyright © 2009–2017. All rights reserved.