public class FetchSearchResult extends TransportResponse implements FetchSearchResultProvider
TransportResponse.Empty
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)
Set this object's fields from a StreamInput.
|
SearchShardTarget |
shardTarget() |
void |
shardTarget(SearchShardTarget shardTarget) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
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 java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportMessage
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportMessage
java.io.IOException