public final class ScrollQueryFetchSearchResult extends SearchPhaseResult
TransportResponse.Empty
requestId
Constructor and Description |
---|
ScrollQueryFetchSearchResult() |
ScrollQueryFetchSearchResult(QueryFetchSearchResult result,
SearchShardTarget shardTarget) |
Modifier and Type | Method and Description |
---|---|
FetchSearchResult |
fetchResult()
Returns the fetch result iff it's included in this response otherwise
null |
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.
|
QueryFetchSearchResult |
result() |
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
void |
setShardIndex(int shardIndex) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getRequestId, getSearchShardTarget, getShardIndex
remoteAddress, remoteAddress
public ScrollQueryFetchSearchResult()
public ScrollQueryFetchSearchResult(QueryFetchSearchResult result, SearchShardTarget shardTarget)
public QueryFetchSearchResult result()
public void setSearchShardTarget(SearchShardTarget shardTarget)
setSearchShardTarget
in class SearchPhaseResult
public void setShardIndex(int shardIndex)
setShardIndex
in class SearchPhaseResult
public QuerySearchResult queryResult()
SearchPhaseResult
null
queryResult
in class SearchPhaseResult
public FetchSearchResult fetchResult()
SearchPhaseResult
null
fetchResult
in class SearchPhaseResult
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