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:
Streamable,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()DfsSearchResult(long id, SearchShardTarget shardTarget)DfsSearchResult(StreamInput in)
-
Method Summary
Modifier and Type Method Description static longaddOne(long value)com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics>fieldStatistics()DfsSearchResultfieldStatistics(com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)intmaxDoc()DfsSearchResultmaxDoc(int maxDoc)static com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics>readFieldStats(StreamInput in)static com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics>readFieldStats(StreamInput in, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.static org.apache.lucene.search.TermStatistics[]readTermStats(StreamInput in, org.apache.lucene.index.Term[] terms)static longsubOne(long value)org.apache.lucene.index.Term[]terms()DfsSearchResulttermsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics)org.apache.lucene.search.TermStatistics[]termStatistics()static voidwriteFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.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 object's fields to a 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()
-
DfsSearchResult
public DfsSearchResult(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
DfsSearchResult
public DfsSearchResult(long id, SearchShardTarget shardTarget)
-
-
Method Detail
-
maxDoc
public DfsSearchResult maxDoc(int 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(com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)
-
terms
public org.apache.lucene.index.Term[] terms()
-
termStatistics
public org.apache.lucene.search.TermStatistics[] termStatistics()
-
fieldStatistics
public com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics()
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classTransportMessage- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classTransportMessage- Throws:
java.io.IOException
-
writeFieldStats
public static void writeFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTermStats
public static void writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSingleTermStats
public static void writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldStats
public static com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> readFieldStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldStats
public static com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> readFieldStats(StreamInput in, com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws java.io.IOException
- Throws:
java.io.IOException
-
readTermStats
public static org.apache.lucene.search.TermStatistics[] readTermStats(StreamInput in, org.apache.lucene.index.Term[] terms) throws java.io.IOException
- Throws:
java.io.IOException
-
addOne
public static long addOne(long value)
-
subOne
public static long subOne(long value)
-
-