public class FetchSearchResult extends TransportResponse implements FetchSearchResultProvider
TransportResponse.Emptyheaders| Constructor and Description |
|---|
FetchSearchResult() |
FetchSearchResult(long id,
SearchShardTarget shardTarget) |
| Modifier and Type | Method and Description |
|---|---|
int |
counterGetAndIncrement() |
FetchSearchResult |
fetchResult() |
InternalSearchHits |
hits() |
void |
hits(InternalSearchHits hits) |
long |
id() |
FetchSearchResult |
initCounter() |
static FetchSearchResult |
readFetchSearchResult(StreamInput in) |
void |
readFrom(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 FetchSearchResult()
public FetchSearchResult(long id,
SearchShardTarget shardTarget)
public FetchSearchResult fetchResult()
fetchResult in interface FetchSearchResultProviderpublic long id()
id in interface SearchPhaseResultpublic SearchShardTarget shardTarget()
shardTarget in interface SearchPhaseResultpublic void shardTarget(SearchShardTarget shardTarget)
shardTarget in interface SearchPhaseResultpublic void hits(InternalSearchHits hits)
public InternalSearchHits hits()
public FetchSearchResult initCounter()
public int counterGetAndIncrement()
public static FetchSearchResult readFetchSearchResult(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.