java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.search.SearchPhaseResult
org.elasticsearch.search.dfs.DfsSearchResult
- All Implemented Interfaces:
Writeable,RefCounted
-
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
Fields inherited from class org.elasticsearch.search.SearchPhaseResult
contextIdFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionDfsSearchResult(ShardSearchContextId contextId, SearchShardTarget shardTarget, ShardSearchRequest shardSearchRequest) -
Method Summary
Modifier and TypeMethodDescriptionstatic longaddOne(long value) fieldStatistics(Map<String, org.apache.lucene.search.CollectionStatistics> fieldStatistics) knnResults(List<DfsKnnResults> knnResults) intmaxDoc()maxDoc(int maxDoc) profileResult(SearchProfileDfsPhaseResult searchProfileDfsPhaseResult) static longsubOne(long value) org.apache.lucene.index.Term[]terms()termsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics) org.apache.lucene.search.TermStatistics[]static voidwriteFieldStats(StreamOutput out, Map<String, org.apache.lucene.search.CollectionStatistics> fieldStatistics) static voidwriteSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) static voidwriteTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.SearchPhaseResult
fetchResult, getContextId, getRescoreDocIds, getSearchShardTarget, getShardIndex, getShardSearchRequest, hasSearchContext, queryResult, rankFeatureResult, setRescoreDocIds, setSearchShardTarget, setShardIndex, setShardSearchRequestMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
DfsSearchResult
- Throws:
IOException
-
DfsSearchResult
public DfsSearchResult(ShardSearchContextId contextId, SearchShardTarget shardTarget, ShardSearchRequest shardSearchRequest)
-
-
Method Details
-
maxDoc
-
maxDoc
public int maxDoc() -
termsStatistics
public DfsSearchResult termsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics) -
fieldStatistics
public DfsSearchResult fieldStatistics(Map<String, org.apache.lucene.search.CollectionStatistics> fieldStatistics) -
knnResults
-
profileResult
-
terms
public org.apache.lucene.index.Term[] terms() -
termStatistics
public org.apache.lucene.search.TermStatistics[] termStatistics() -
fieldStatistics
-
knnResults
-
searchProfileDfsPhaseResult
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSearchPhaseResult- Throws:
IOException
-
writeFieldStats
public static void writeFieldStats(StreamOutput out, Map<String, org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws IOException- Throws:
IOException
-
writeTermStats
public static void writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) throws IOException - Throws:
IOException
-
writeSingleTermStats
public static void writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) throws IOException - Throws:
IOException
-
addOne
public static long addOne(long value) -
subOne
public static long subOne(long value)
-