public abstract class InternalSignificantTerms<A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> extends InternalMultiBucketAggregation<A,B> implements SignificantTerms, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>> |
InternalMultiBucketAggregation.InternalBucket
InternalAggregation.ReduceContext
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
protected long |
minDocCount |
protected int |
requiredSize |
metaData, name
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
InternalSignificantTerms(StreamInput in)
Read from a stream.
|
protected |
InternalSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
protected abstract A |
create(long subsetSize,
long supersetSize,
java.util.List<B> buckets) |
protected abstract B[] |
createBucketsArray(int size)
Create an array to hold some buckets.
|
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
java.util.List<SignificantTerms.Bucket> |
getBuckets() |
protected abstract java.util.List<B> |
getBucketsInternal() |
protected abstract SignificanceHeuristic |
getSignificanceHeuristic() |
protected abstract long |
getSubsetSize() |
protected abstract long |
getSupersetSize() |
java.util.Iterator<SignificantTerms.Bucket> |
iterator() |
protected abstract void |
writeTermTypeInfoTo(StreamOutput out) |
create, createBucket, getProperty
doXContentBody, getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBucketByKey
getMetaData, getName
isFragment, toXContent
getWriteableName
protected final int requiredSize
protected final long minDocCount
protected InternalSignificantTerms(java.lang.String name, int requiredSize, long minDocCount, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
protected InternalSignificantTerms(StreamInput in) throws java.io.IOException
java.io.IOException
protected final void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
protected abstract void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
java.io.IOException
public java.util.Iterator<SignificantTerms.Bucket> iterator()
iterator
in interface java.lang.Iterable<SignificantTerms.Bucket>
public java.util.List<SignificantTerms.Bucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
getBuckets
in class InternalMultiBucketAggregation<A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>
protected abstract java.util.List<B> getBucketsInternal()
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
protected abstract B[] createBucketsArray(int size)
protected abstract long getSubsetSize()
protected abstract long getSupersetSize()
protected abstract SignificanceHeuristic getSignificanceHeuristic()