public abstract class InternalSignificantTerms<A extends InternalSignificantTerms,B extends InternalSignificantTerms.Bucket> extends InternalMultiBucketAggregation<A,B> implements SignificantTerms, ToXContent, Streamable
Modifier and Type | Class and Description |
---|---|
static class |
InternalSignificantTerms.Bucket |
InternalMultiBucketAggregation.InternalBucket
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 List<? extends InternalSignificantTerms.Bucket> |
buckets |
protected long |
minDocCount |
protected int |
requiredSize |
protected SignificanceHeuristic |
significanceHeuristic |
protected long |
subsetSize |
protected long |
supersetSize |
metaData, name
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
InternalSignificantTerms() |
protected |
InternalSignificantTerms(long subsetSize,
long supersetSize,
String name,
int requiredSize,
long minDocCount,
SignificanceHeuristic significanceHeuristic,
List<? extends InternalSignificantTerms.Bucket> buckets,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
protected abstract A |
create(long subsetSize,
long supersetSize,
List<InternalSignificantTerms.Bucket> buckets,
InternalSignificantTerms prototype) |
InternalAggregation |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
SignificantTerms.Bucket |
getBucketByKey(String term)
Get the bucket for the given term, or null if there is no such bucket.
|
List<SignificantTerms.Bucket> |
getBuckets() |
Iterator<SignificantTerms.Bucket> |
iterator() |
create, createBucket, getProperty
doReadFrom, doWriteTo, doXContentBody, getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, type, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
forEach, spliterator
toXContent
readFrom, writeTo
protected SignificanceHeuristic significanceHeuristic
protected int requiredSize
protected long minDocCount
protected List<? extends 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, List<? extends InternalSignificantTerms.Bucket> buckets, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public Iterator<SignificantTerms.Bucket> iterator()
iterator
in interface Iterable<SignificantTerms.Bucket>
public List<SignificantTerms.Bucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
public SignificantTerms.Bucket getBucketByKey(String term)
SignificantTerms
getBucketByKey
in interface SignificantTerms
public InternalAggregation doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
protected abstract A create(long subsetSize, long supersetSize, List<InternalSignificantTerms.Bucket> buckets, InternalSignificantTerms prototype)
Copyright © 2009–2016. All rights reserved.