Class SingleBucketAggregate

  • All Implemented Interfaces:
    Aggregate<BucketTerm>
    Direct Known Subclasses:
    MissingAggregate

    public abstract class SingleBucketAggregate
    extends AggregateEsBase<org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation,​BucketTerm>
    An aggregate that returns a single bucket.
    Since:
    10.3
    • Field Detail

      • docCount

        protected long docCount
    • Method Detail

      • parseAggregation

        public void parseAggregation​(org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation aggregation)
        Description copied from class: AggregateEsBase
        Extract the aggregation from the Elasticsearch response
        Specified by:
        parseAggregation in class AggregateEsBase<org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation,​BucketTerm>
      • getEsFilter

        public org.elasticsearch.index.query.QueryBuilder getEsFilter()
        Description copied from class: AggregateEsBase
        Return the Elasticsearch aggregate filter corresponding to the selection
        Specified by:
        getEsFilter in class AggregateEsBase<org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation,​BucketTerm>
      • getDocCount

        public long getDocCount()