Package org.elasticsearch.search.dfs
Class DfsSearchResult
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.search.SearchPhaseResult
-
- org.elasticsearch.search.dfs.DfsSearchResult
-
- All Implemented Interfaces:
Writeable
public class DfsSearchResult extends SearchPhaseResult
-
-
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
requestId
-
-
Constructor Summary
Constructors Constructor Description DfsSearchResult(long id, SearchShardTarget shardTarget)DfsSearchResult(StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longaddOne(long value)ObjectObjectHashMap<String,CollectionStatistics>fieldStatistics()DfsSearchResultfieldStatistics(ObjectObjectHashMap<String,CollectionStatistics> fieldStatistics)intmaxDoc()DfsSearchResultmaxDoc(int maxDoc)static longsubOne(long value)Term[]terms()DfsSearchResulttermsStatistics(Term[] terms, TermStatistics[] termStatistics)TermStatistics[]termStatistics()static voidwriteFieldStats(StreamOutput out, ObjectObjectHashMap<String,CollectionStatistics> fieldStatistics)static voidwriteSingleTermStats(StreamOutput out, TermStatistics termStatistic)static voidwriteTermStats(StreamOutput out, TermStatistics[] termStatistics)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.search.SearchPhaseResult
fetchResult, getRequestId, getSearchShardTarget, getShardIndex, queryResult, setSearchShardTarget, setShardIndex
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Constructor Detail
-
DfsSearchResult
public DfsSearchResult(StreamInput in) throws IOException
- Throws:
IOException
-
DfsSearchResult
public DfsSearchResult(long id, SearchShardTarget shardTarget)
-
-
Method Detail
-
maxDoc
public DfsSearchResult maxDoc(int maxDoc)
-
maxDoc
public int maxDoc()
-
termsStatistics
public DfsSearchResult termsStatistics(Term[] terms, TermStatistics[] termStatistics)
-
fieldStatistics
public DfsSearchResult fieldStatistics(ObjectObjectHashMap<String,CollectionStatistics> fieldStatistics)
-
terms
public Term[] terms()
-
termStatistics
public TermStatistics[] termStatistics()
-
fieldStatistics
public ObjectObjectHashMap<String,CollectionStatistics> fieldStatistics()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
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, ObjectObjectHashMap<String,CollectionStatistics> fieldStatistics) throws IOException
- Throws:
IOException
-
writeTermStats
public static void writeTermStats(StreamOutput out, TermStatistics[] termStatistics) throws IOException
- Throws:
IOException
-
writeSingleTermStats
public static void writeSingleTermStats(StreamOutput out, TermStatistics termStatistic) throws IOException
- Throws:
IOException
-
addOne
public static long addOne(long value)
-
subOne
public static long subOne(long value)
-
-