java.lang.Iterable<SignificantTerms.Bucket>
, NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, Aggregation
, MultiBucketsAggregation
, SignificantTerms
InternalMappedSignificantTerms
, UnmappedSignificantTerms
public abstract class InternalSignificantTerms<A extends InternalSignificantTerms<A,B>,B extends InternalSignificantTerms.Bucket<B>> extends InternalMultiBucketAggregation<A,B> implements SignificantTerms
Modifier and Type | Class | Description |
---|---|---|
static class |
InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>> |
Aggregation.CommonFields
InternalAggregation.ReduceContext
InternalMultiBucketAggregation.InternalBucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
BG_COUNT |
|
protected long |
minDocCount |
|
protected int |
requiredSize |
|
static java.lang.String |
SCORE |
TYPED_KEYS_DELIMITER
metaData, name
EMPTY_PARAMS
Modifier | Constructor | Description |
---|---|---|
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) |
Read from a stream.
|
Modifier and Type | Method | 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) |
getMetaData, getName, getType
doXContentBody, equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
countInnerBucket, countInnerBucket, create, createBucket, getProperty
getWriteableName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBucketByKey
toXContent
isFragment
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