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.InternalBucket
InternalAggregation.ReduceContext
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.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, 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.
|
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, getProperty
doXContentBody, equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBucketByKey
getMetaData, getName, getType
isFragment
toXContent
getWriteableName
public 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.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 abstract java.util.List<B> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
getBuckets
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 InternalAggregation
protected abstract B[] createBucketsArray(int size)
protected abstract long getSubsetSize()
protected abstract long getSupersetSize()
protected abstract SignificanceHeuristic getSignificanceHeuristic()
protected int doHashCode()
InternalAggregation
InternalAggregation.hashCode()
for this
class.doHashCode
in class InternalAggregation
protected boolean doEquals(java.lang.Object obj)
InternalAggregation
InternalAggregation.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 this
doEquals
in class InternalAggregation