Module org.elasticsearch.server
Class InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>>
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms.Bucket<B>
- All Implemented Interfaces:
- Writeable,- MultiBucketsAggregation.Bucket,- SignificantTerms.Bucket,- HasAggregations,- ToXContent
- Direct Known Subclasses:
- SignificantLongTerms.Bucket,- SignificantStringTerms.Bucket,- UnmappedSignificantTerms.Bucket
- Enclosing class:
- InternalSignificantTerms<A extends InternalSignificantTerms<A,B>, B extends InternalSignificantTerms.Bucket<B>> 
public abstract static class InternalSignificantTerms.Bucket<B extends InternalSignificantTerms.Bucket<B>>
extends InternalMultiBucketAggregation.InternalBucket
implements SignificantTerms.Bucket
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceReads a bucket.Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Writer<V>
- 
Field SummaryFieldsFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedBucket(long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format) protectedBucket(StreamInput in, long subsetSize, long supersetSize, DocValueFormat format) Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlongdoublelonglonglonglonginthashCode()protected abstract XContentBuilderkeyToXContent(XContentBuilder builder) final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketgetPropertyMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.BucketgetKey, getKeyAsStringMethods inherited from interface org.elasticsearch.search.aggregations.bucket.terms.SignificantTerms.BucketgetKeyAsNumberMethods inherited from interface org.elasticsearch.xcontent.ToXContentisFragment
- 
Field Details- 
aggregations
 
- 
- 
Constructor Details- 
Bucketprotected Bucket(long subsetDf, long subsetSize, long supersetDf, long supersetSize, InternalAggregations aggregations, DocValueFormat format) 
- 
BucketRead from a stream.
 
- 
- 
Method Details- 
getSubsetDfpublic long getSubsetDf()- Specified by:
- getSubsetDfin interface- SignificantTerms.Bucket
- Returns:
- The number of docs in the subset containing a particular term. This number is equal to the document count of the bucket.
 
- 
getSupersetDfpublic long getSupersetDf()- Specified by:
- getSupersetDfin interface- SignificantTerms.Bucket
- Returns:
- The number of docs in the superset containing a particular term (also known as the "background count" of the bucket)
 
- 
getSupersetSizepublic long getSupersetSize()- Specified by:
- getSupersetSizein interface- SignificantTerms.Bucket
- Returns:
- The numbers of docs in the superset (ordinarily the background count of the containing aggregation).
 
- 
getSubsetSizepublic long getSubsetSize()- Specified by:
- getSubsetSizein interface- SignificantTerms.Bucket
- Returns:
- The numbers of docs in the subset (also known as "foreground set"). This number is equal to the document count of the containing aggregation.
 
- 
getDocCountpublic long getDocCount()- Specified by:
- getDocCountin interface- MultiBucketsAggregation.Bucket
- Returns:
- The number of documents that fall within this bucket
 
- 
getAggregations- Specified by:
- getAggregationsin interface- HasAggregations
- Specified by:
- getAggregationsin interface- MultiBucketsAggregation.Bucket
- Returns:
- The sub-aggregations of this bucket
 
- 
getSignificanceScorepublic double getSignificanceScore()- Specified by:
- getSignificanceScorein interface- SignificantTerms.Bucket
- Returns:
- The significant score for the subset
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toXContentpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
keyToXContent- Throws:
- IOException
 
 
-