public class FetchSearchResult extends TransportResponse implements FetchSearchResultProvider
TransportResponse.Empty
headers
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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public FetchSearchResult()
public FetchSearchResult(long id, SearchShardTarget shardTarget)
public FetchSearchResult fetchResult()
fetchResult
in interface FetchSearchResultProvider
public long id()
id
in interface SearchPhaseResult
public SearchShardTarget shardTarget()
shardTarget
in interface SearchPhaseResult
public void shardTarget(SearchShardTarget shardTarget)
shardTarget
in interface SearchPhaseResult
public void hits(InternalSearchHits hits)
public InternalSearchHits hits()
public FetchSearchResult initCounter()
public int counterGetAndIncrement()
public static FetchSearchResult readFetchSearchResult(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–2016. All rights reserved.