Class InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>

java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket<B>
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, MultiBucketsAggregation.Bucket, RareTerms.Bucket, HasAggregations, KeyComparable<B>
Direct Known Subclasses:
LongRareTerms.Bucket, StringRareTerms.Bucket, UnmappedRareTerms.Bucket
Enclosing class:
InternalRareTerms<A extends InternalRareTerms<A,​B>,​B extends InternalRareTerms.Bucket<B>>

public abstract static class InternalRareTerms.Bucket<B extends InternalRareTerms.Bucket<B>>
extends InternalMultiBucketAggregation.InternalBucket
implements RareTerms.Bucket, KeyComparable<B>
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public final void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • writeTermTo

      protected abstract void writeTermTo​(StreamOutput out) throws java.io.IOException
      Throws:
      java.io.IOException
    • 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
    • toXContent

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

      protected abstract org.elasticsearch.common.xcontent.XContentBuilder keyToXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder) throws java.io.IOException
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object