public abstract class InternalSignificantTerms<A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> extends InternalMultiBucketAggregation<A,B> implements SignificantTerms
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>> |
InternalMultiBucketAggregation.InternalBucketInternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BG_COUNT |
protected long |
minDocCount |
protected int |
requiredSize |
static java.lang.String |
SCORE |
metaData, nameTYPED_KEYS_DELIMITEREMPTY_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.
|
protected boolean |
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
abstract java.util.List<B> |
getBuckets() |
protected abstract SignificanceHeuristic |
getSignificanceHeuristic() |
protected abstract long |
getSubsetSize() |
protected abstract long |
getSupersetSize() |
protected abstract void |
writeTermTypeInfoTo(StreamOutput out) |
create, createBucket, getPropertydoXContentBody, equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBucketByKeygetMetaData, getName, getTypeisFragmenttoXContentgetWriteableNamepublic static final java.lang.String SCORE
public static final java.lang.String BG_COUNT
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.IOExceptionprotected final void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionprotected abstract void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic abstract java.util.List<B> getBuckets()
getBuckets in interface MultiBucketsAggregationgetBuckets in interface SignificantTermsgetBuckets in class InternalMultiBucketAggregation<A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>>public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected abstract B[] createBucketsArray(int size)
protected abstract long getSubsetSize()
protected abstract long getSupersetSize()
protected abstract SignificanceHeuristic getSignificanceHeuristic()
protected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregationprotected boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregation