public final class FetchSearchResult extends SearchPhaseResult
TransportResponse.Empty
requestId
Constructor and Description |
---|
FetchSearchResult() |
FetchSearchResult(long id,
SearchShardTarget shardTarget) |
Modifier and Type | Method and Description |
---|---|
int |
counterGetAndIncrement() |
FetchSearchResult |
fetchResult()
Returns the fetch result iff it's included in this response otherwise
null |
SearchHits |
hits() |
void |
hits(SearchHits hits) |
FetchSearchResult |
initCounter() |
QuerySearchResult |
queryResult()
Returns the query result iff it's included in this response otherwise
null |
static FetchSearchResult |
readFetchSearchResult(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getRequestId, getSearchShardTarget, getShardIndex, setSearchShardTarget, setShardIndex
remoteAddress, remoteAddress
public FetchSearchResult()
public FetchSearchResult(long id, SearchShardTarget shardTarget)
public QuerySearchResult queryResult()
SearchPhaseResult
null
queryResult
in class SearchPhaseResult
public FetchSearchResult fetchResult()
SearchPhaseResult
null
fetchResult
in class SearchPhaseResult
public void hits(SearchHits hits)
public SearchHits 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