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.InternalBucketInternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.TypeToXContent.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, nameEMPTY_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, getPropertydoReadFrom, doWriteTo, doXContentBody, getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, type, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getPropertytoXContentreadFrom, writeToprotected 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 MultiBucketsAggregationgetBuckets in interface SignificantTermspublic SignificantTerms.Bucket getBucketByKey(String term)
SignificantTermsgetBucketByKey in interface SignificantTermspublic InternalAggregation doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected abstract A create(long subsetSize, long supersetSize, List<InternalSignificantTerms.Bucket> buckets, InternalSignificantTerms prototype)
Copyright © 2009–2017. All rights reserved.