Writeable, ToXContent, MultiBucketsAggregation.Bucket, SignificantTerms.Bucket, HasAggregationsSignificantStringTerms.Bucket, UnmappedSignificantTerms.Bucketpublic abstract static class InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>> extends InternalMultiBucketAggregation.InternalBucket implements SignificantTerms.Bucket
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
InternalSignificantTerms.Bucket.Reader<B extends InternalSignificantTerms.Bucket<B>> |
Reads a bucket.
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
protected InternalAggregations |
aggregations |
EMPTY_PARAMS| Modifier | Constructor | 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 | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
Aggregations |
getAggregations() |
|
long |
getDocCount() |
|
double |
getSignificanceScore() |
|
long |
getSubsetDf() |
|
long |
getSubsetSize() |
|
long |
getSupersetDf() |
|
long |
getSupersetSize() |
|
int |
hashCode() |
|
protected abstract XContentBuilder |
keyToXContent(XContentBuilder builder) |
|
B |
reduce(java.util.List<B> buckets,
InternalAggregation.ReduceContext context) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
getPropertygetKey, getKeyAsStringclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetKeyAsNumberisFragmentprotected 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 interface SignificantTerms.Bucketpublic long getSupersetDf()
getSupersetDf in interface SignificantTerms.Bucketpublic long getSupersetSize()
getSupersetSize in interface SignificantTerms.Bucketpublic long getSubsetSize()
getSubsetSize in interface SignificantTerms.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface HasAggregationsgetAggregations in interface MultiBucketsAggregation.Bucketpublic B reduce(java.util.List<B> buckets, InternalAggregation.ReduceContext context)
public double getSignificanceScore()
getSignificanceScore in interface SignificantTerms.Bucketpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected abstract XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
java.io.IOException