public final class FetchSearchResult extends SearchPhaseResult
TransportResponse.EmptyrequestId| 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, setShardIndexremoteAddress, remoteAddresspublic FetchSearchResult()
public FetchSearchResult(long id,
SearchShardTarget shardTarget)
public QuerySearchResult queryResult()
SearchPhaseResultnullqueryResult in class SearchPhaseResultpublic FetchSearchResult fetchResult()
SearchPhaseResultnullfetchResult in class SearchPhaseResultpublic 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.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportMessagejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class TransportMessagejava.io.IOException