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