public class DfsSearchResult extends TransportResponse implements SearchPhaseResult
TransportResponse.Emptyheaders| 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, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic DfsSearchResult()
public DfsSearchResult(long id,
SearchShardTarget shardTarget)
public long id()
id in interface SearchPhaseResultpublic SearchShardTarget shardTarget()
shardTarget in interface SearchPhaseResultpublic void shardTarget(SearchShardTarget shardTarget)
shardTarget in interface SearchPhaseResultpublic 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
IOExceptionClassNotFoundExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportResponse>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportResponse>IOExceptionpublic static void writeFieldStats(StreamOutput out, com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> fieldStatistics) throws IOException
IOExceptionpublic static void writeTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics[] termStatistics) throws IOException
IOExceptionpublic static void writeSingleTermStats(StreamOutput out, org.apache.lucene.search.TermStatistics termStatistic) throws IOException
IOExceptionpublic static com.carrotsearch.hppc.ObjectObjectHashMap<String,org.apache.lucene.search.CollectionStatistics> readFieldStats(StreamInput in) throws IOException
IOExceptionpublic 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
IOExceptionpublic static org.apache.lucene.search.TermStatistics[] readTermStats(StreamInput in, org.apache.lucene.index.Term[] terms) throws IOException
IOExceptionpublic static long addOne(long value)
public static long subOne(long value)
Copyright © 2009–2017. All rights reserved.