public class QueryFetchSearchResult extends QuerySearchResultProvider implements FetchSearchResultProvider
TransportResponse.Empty
headers
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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public QueryFetchSearchResult()
public QueryFetchSearchResult(QuerySearchResult queryResult, FetchSearchResult fetchResult)
public long id()
id
in interface SearchPhaseResult
public SearchShardTarget shardTarget()
shardTarget
in interface SearchPhaseResult
public void shardTarget(SearchShardTarget shardTarget)
shardTarget
in interface SearchPhaseResult
public boolean includeFetch()
QuerySearchResultProvider
includeFetch
in class QuerySearchResultProvider
public QuerySearchResult queryResult()
queryResult
in class QuerySearchResultProvider
public FetchSearchResult fetchResult()
fetchResult
in interface FetchSearchResultProvider
public static QueryFetchSearchResult readQueryFetchSearchResult(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportResponse>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportResponse>
IOException
Copyright © 2009–2017. All rights reserved.