public abstract class SearchPhaseResult extends TransportResponse implements Streamable
TransportResponse.Empty
Modifier and Type | Field and Description |
---|---|
protected long |
requestId |
Constructor and Description |
---|
SearchPhaseResult() |
Modifier and Type | Method and 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) |
readFrom, remoteAddress, remoteAddress, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrom, 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