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
,org.elasticsearch.core.RefCounted
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.search.SearchPhaseResult
contextId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the fetch result iff it's included in this response otherwisenull
hits()
void
hits(SearchHits hits)
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.elasticsearch.search.SearchPhaseResult
getContextId, getRescoreDocIds, getSearchShardTarget, getShardIndex, getShardSearchRequest, setRescoreDocIds, setSearchShardTarget, setShardIndex, setShardSearchRequest
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
-
Constructor Details
-
FetchSearchResult
public FetchSearchResult() -
FetchSearchResult
- Throws:
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:
IOException
-