Package org.elasticsearch.search.fetch
Class FetchSearchResult
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.search.SearchPhaseResult
org.elasticsearch.search.fetch.FetchSearchResult
- All Implemented Interfaces:
Writeable
public final class FetchSearchResult extends SearchPhaseResult
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description FetchSearchResult()FetchSearchResult(StreamInput in)FetchSearchResult(SearchContextId id, SearchShardTarget shardTarget) -
Method Summary
Modifier and Type Method Description intcounterGetAndIncrement()FetchSearchResultfetchResult()Returns the fetch result iff it's included in this response otherwisenullSearchHitshits()voidhits(SearchHits hits)FetchSearchResultinitCounter()QuerySearchResultqueryResult()Returns the query result iff it's included in this response otherwisenullvoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.SearchPhaseResult
getContextId, getSearchShardTarget, getShardIndex, setSearchShardTarget, setShardIndexMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
FetchSearchResult
public FetchSearchResult() -
FetchSearchResult
- Throws:
java.io.IOException
-
FetchSearchResult
-
-
Method Details
-
queryResult
Description copied from class:SearchPhaseResultReturns the query result iff it's included in this response otherwisenull- Overrides:
queryResultin classSearchPhaseResult
-
fetchResult
Description copied from class:SearchPhaseResultReturns the fetch result iff it's included in this response otherwisenull- Overrides:
fetchResultin classSearchPhaseResult
-
hits
-
hits
-
initCounter
-
counterGetAndIncrement
public int counterGetAndIncrement() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSearchPhaseResult- Throws:
java.io.IOException
-