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, org.elasticsearch.common.xcontent.ToXContent, MultiBucketsAggregation.Bucket, SignificantTerms.Bucket, HasAggregations
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
  • Field Details

  • Constructor Details

  • Method Details

    • getSubsetDf

      public long getSubsetDf()
      Specified by:
      getSubsetDf in 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.
    • getSupersetDf

      public long getSupersetDf()
      Specified by:
      getSupersetDf in interface SignificantTerms.Bucket
      Returns:
      The number of docs in the superset containing a particular term (also known as the "background count" of the bucket)
    • getSupersetSize

      public long getSupersetSize()
      Specified by:
      getSupersetSize in interface SignificantTerms.Bucket
      Returns:
      The numbers of docs in the superset (ordinarily the background count of the containing aggregation).
    • getSubsetSize

      public long getSubsetSize()
      Specified by:
      getSubsetSize in 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.
    • getDocCount

      public long getDocCount()
      Specified by:
      getDocCount in interface MultiBucketsAggregation.Bucket
      Returns:
      The number of documents that fall within this bucket
    • getAggregations

      public Aggregations getAggregations()
      Specified by:
      getAggregations in interface HasAggregations
      Specified by:
      getAggregations in interface MultiBucketsAggregation.Bucket
      Returns:
      The sub-aggregations of this bucket
    • getSignificanceScore

      public double getSignificanceScore()
      Specified by:
      getSignificanceScore in interface SignificantTerms.Bucket
      Returns:
      The significant score for the subset
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toXContent

      public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • keyToXContent

      protected abstract org.elasticsearch.common.xcontent.XContentBuilder keyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder) throws IOException
      Throws:
      IOException