public abstract static class InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>> extends SignificantTerms.Bucket
Modifier and Type | Class and Description |
---|---|
static interface |
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>>
Reads a bucket.
|
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
protected InternalAggregations |
aggregations |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
Bucket(long subsetDf,
long subsetSize,
long supersetDf,
long supersetSize,
InternalAggregations aggregations,
DocValueFormat format) |
protected |
Bucket(StreamInput in,
long subsetSize,
long supersetSize,
DocValueFormat format)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
double |
getSignificanceScore() |
long |
getSubsetDf() |
long |
getSubsetSize() |
long |
getSupersetDf() |
long |
getSupersetSize() |
B |
reduce(java.util.List<B> buckets,
InternalAggregation.ReduceContext context) |
void |
updateScore(SignificanceHeuristic significanceHeuristic) |
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, getKeyAsString
toXContent
protected InternalAggregations aggregations
protected Bucket(long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format)
protected Bucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format)
public long getSubsetDf()
getSubsetDf
in class SignificantTerms.Bucket
public long getSupersetDf()
getSupersetDf
in class SignificantTerms.Bucket
public long getSupersetSize()
getSupersetSize
in class SignificantTerms.Bucket
public long getSubsetSize()
getSubsetSize
in class SignificantTerms.Bucket
public void updateScore(SignificanceHeuristic significanceHeuristic)
public long getDocCount()
public Aggregations getAggregations()
public B reduce(java.util.List<B> buckets, InternalAggregation.ReduceContext context)
public double getSignificanceScore()
getSignificanceScore
in class SignificantTerms.Bucket