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.Type
ToXContent.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 |
name
EMPTY_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, writeSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
forEach, spliterator
toXContent
readFrom, writeTo
protected 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 MultiBucketsAggregation
getBuckets
in interface SignificantTerms
public SignificantTerms.Bucket getBucketByKey(String term)
MultiBucketsAggregation
getBucketByKey
in interface MultiBucketsAggregation
getBucketByKey
in interface SignificantTerms
term
- The key of the requested bucket.public InternalAggregation reduce(InternalAggregation.ReduceContext reduceContext)
InternalAggregation
reduce
in class InternalAggregation
Copyright © 2009–2015. All rights reserved.