Package org.opensearch.search.fetch
Class FetchSearchResult
java.lang.Object
org.opensearch.transport.TransportMessage
org.opensearch.transport.TransportResponse
org.opensearch.search.SearchPhaseResult
org.opensearch.search.fetch.FetchSearchResult
- All Implemented Interfaces:
Writeable
public final class FetchSearchResult extends SearchPhaseResult
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FetchSearchResult()
FetchSearchResult(StreamInput in)
FetchSearchResult(ShardSearchContextId id, SearchShardTarget shardTarget)
-
Method Summary
Modifier and Type Method Description int
counterGetAndIncrement()
FetchSearchResult
fetchResult()
Returns the fetch result iff it's included in this response otherwisenull
SearchHits
hits()
void
hits(SearchHits hits)
FetchSearchResult
initCounter()
QuerySearchResult
queryResult()
Returns the query result iff it's included in this response otherwisenull
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.opensearch.search.SearchPhaseResult
getContextId, getRescoreDocIds, getSearchShardTarget, getShardIndex, getShardSearchRequest, setRescoreDocIds, setSearchShardTarget, setShardIndex, setShardSearchRequest
-
Constructor Details
-
FetchSearchResult
public FetchSearchResult() -
FetchSearchResult
- Throws:
java.io.IOException
-
FetchSearchResult
-
-
Method Details
-
queryResult
Description copied from class:SearchPhaseResult
Returns the query result iff it's included in this response otherwisenull
- Overrides:
queryResult
in classSearchPhaseResult
-
fetchResult
Description copied from class:SearchPhaseResult
Returns the fetch result iff it's included in this response otherwisenull
- Overrides:
fetchResult
in classSearchPhaseResult
-
hits
-
hits
-
initCounter
-
counterGetAndIncrement
public int counterGetAndIncrement() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSearchPhaseResult
- Throws:
java.io.IOException
-