Streamable
, Writeable
DfsSearchResult
, FetchSearchResult
, QueryFetchSearchResult
, QuerySearchResult
, ScrollQueryFetchSearchResult
, ScrollQuerySearchResult
, SearchTransportService.CanMatchResponse
public abstract class SearchPhaseResult extends TransportResponse implements Streamable
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
protected long |
requestId |
Constructor | Description |
---|---|
SearchPhaseResult() |
Modifier and Type | Method | Description |
---|---|---|
FetchSearchResult |
fetchResult() |
Returns the fetch result iff it's included in this response otherwise
null |
long |
getRequestId() |
Returns the results request ID that is used to reference the search context on the executing
node
|
SearchShardTarget |
getSearchShardTarget() |
|
int |
getShardIndex() |
Returns the shard index in the context of the currently executing search request that is
used for accounting on the coordinating node
|
QuerySearchResult |
queryResult() |
Returns the query result iff it's included in this response otherwise
null |
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
|
void |
setShardIndex(int shardIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrom, writeTo
readFrom, remoteAddress, remoteAddress, writeTo
public long getRequestId()
public int getShardIndex()
public SearchShardTarget getSearchShardTarget()
public void setSearchShardTarget(SearchShardTarget shardTarget)
public void setShardIndex(int shardIndex)
public QuerySearchResult queryResult()
null
public FetchSearchResult fetchResult()
null