Class InternalTerms.Bucket<B extends InternalTerms.Bucket<B>>

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, MultiBucketsAggregation.Bucket, Terms.Bucket, HasAggregations, KeyComparable<B>
Direct Known Subclasses:
LongTerms.Bucket, StringTerms.Bucket, UnmappedTerms.Bucket
Enclosing class:
InternalTerms<A extends InternalTerms<A,​B>,​B extends InternalTerms.Bucket<B>>

public abstract static class InternalTerms.Bucket<B extends InternalTerms.Bucket<B>>
extends AbstractInternalTerms.AbstractTermsBucket
implements Terms.Bucket, KeyComparable<B>
  • Field Details

    • docCount

      protected long docCount
    • docCountError

      protected long docCountError
    • aggregations

      protected InternalAggregations aggregations
    • showDocCountError

      protected final boolean showDocCountError
    • format

      protected final DocValueFormat format
  • Constructor Details

    • Bucket

      protected Bucket​(long docCount, InternalAggregations aggregations, boolean showDocCountError, long docCountError, DocValueFormat formatter)
    • Bucket

      protected Bucket​(StreamInput in, DocValueFormat formatter, boolean showDocCountError) throws java.io.IOException
      Read from a stream.
      Throws:
      java.io.IOException
  • Method Details