public abstract class InternalSignificantTerms extends InternalAggregation implements SignificantTerms, ToXContent, Streamable
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalSignificantTerms.Bucket |
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected Map<String,InternalSignificantTerms.Bucket> |
bucketMap |
protected Collection<InternalSignificantTerms.Bucket> |
buckets |
protected long |
minDocCount |
protected int |
requiredSize |
protected SignificanceHeuristic |
significanceHeuristic |
protected long |
subsetSize |
protected long |
supersetSize |
nameEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
InternalSignificantTerms() |
protected |
InternalSignificantTerms(long subsetSize,
long supersetSize,
String name,
int requiredSize,
long minDocCount,
SignificanceHeuristic significanceHeuristic,
Collection<InternalSignificantTerms.Bucket> buckets) |
| Modifier and Type | Method and Description |
|---|---|
SignificantTerms.Bucket |
getBucketByKey(String term)
The bucket that is associated with the given key.
|
Collection<SignificantTerms.Bucket> |
getBuckets() |
Iterator<SignificantTerms.Bucket> |
iterator() |
InternalAggregation |
reduce(InternalAggregation.ReduceContext reduceContext)
Reduces the given addAggregation to a single one and returns it.
|
doXContentBody, getName, readSize, toXContent, type, writeSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameforEach, spliteratortoXContentreadFrom, writeToprotected SignificanceHeuristic significanceHeuristic
protected int requiredSize
protected long minDocCount
protected Collection<InternalSignificantTerms.Bucket> buckets
protected Map<String,InternalSignificantTerms.Bucket> bucketMap
protected long subsetSize
protected long supersetSize
protected InternalSignificantTerms()
protected InternalSignificantTerms(long subsetSize,
long supersetSize,
String name,
int requiredSize,
long minDocCount,
SignificanceHeuristic significanceHeuristic,
Collection<InternalSignificantTerms.Bucket> buckets)
public Iterator<SignificantTerms.Bucket> iterator()
iterator in interface Iterable<SignificantTerms.Bucket>public Collection<SignificantTerms.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationgetBuckets in interface SignificantTermspublic SignificantTerms.Bucket getBucketByKey(String term)
MultiBucketsAggregationgetBucketByKey in interface MultiBucketsAggregationgetBucketByKey in interface SignificantTermsterm - The key of the requested bucket.public InternalAggregation reduce(InternalAggregation.ReduceContext reduceContext)
InternalAggregationreduce in class InternalAggregationCopyright © 2009–2016. All rights reserved.