public class DfsSearchResult extends TransportResponse implements SearchPhaseResult
TransportResponse.Empty
headers
Constructor and Description |
---|
DfsSearchResult() |
DfsSearchResult(long id,
SearchShardTarget shardTarget) |
Modifier and Type | Method and Description |
---|---|
static long |
addOne(long value) |
com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> |
fieldStatistics() |
DfsSearchResult |
fieldStatistics(com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) |
long |
id() |
int |
maxDoc() |
DfsSearchResult |
maxDoc(int maxDoc) |
static DfsSearchResult |
readDfsSearchResult(StreamInput in) |
static com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> |
readFieldStats(StreamInput in) |
static com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> |
readFieldStats(StreamInput in,
com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) |
void |
readFrom(StreamInput in) |
static org.apache.lucene.search.TermStatistics[] |
readTermStats(StreamInput in,
org.apache.lucene.index.Term[] terms) |
SearchShardTarget |
shardTarget() |
void |
shardTarget(SearchShardTarget shardTarget) |
static long |
subOne(long value) |
org.apache.lucene.index.Term[] |
terms() |
DfsSearchResult |
termsStatistics(org.apache.lucene.index.Term[] terms,
org.apache.lucene.search.TermStatistics[] termStatistics) |
org.apache.lucene.search.TermStatistics[] |
termStatistics() |
static void |
writeFieldStats(StreamOutput out,
com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) |
static void |
writeSingleTermStats(StreamOutput out,
org.apache.lucene.search.TermStatistics termStatistic) |
static void |
writeTermStats(StreamOutput out,
org.apache.lucene.search.TermStatistics[] termStatistics) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public DfsSearchResult()
public DfsSearchResult(long id, SearchShardTarget shardTarget)
public long id()
id
in interface SearchPhaseResult
public SearchShardTarget shardTarget()
shardTarget
in interface SearchPhaseResult
public void shardTarget(SearchShardTarget shardTarget)
shardTarget
in interface SearchPhaseResult
public DfsSearchResult maxDoc(int maxDoc)
public int maxDoc()
public DfsSearchResult termsStatistics(org.apache.lucene.index.Term[] terms, org.apache.lucene.search.TermStatistics[] termStatistics)
public DfsSearchResult fieldStatistics(com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics)
public org.apache.lucene.index.Term[] terms()
public org.apache.lucene.search.TermStatistics[] termStatistics()
public com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics()
public static DfsSearchResult readDfsSearchResult(StreamInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportResponse>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportResponse>
IOException
public static void writeFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws IOException
IOException
public static void writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) throws IOException
IOException
public static void writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) throws IOException
IOException
public static com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> readFieldStats(StreamInput in) throws IOException
IOException
public static com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> readFieldStats(StreamInput in, com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws IOException
IOException
public static org.apache.lucene.search.TermStatistics[] readTermStats(StreamInput in, org.apache.lucene.index.Term[] terms) throws IOException
IOException
public static long addOne(long value)
public static long subOne(long value)
Copyright © 2009–2016. All rights reserved.