Class MultiBucketAggregate<B extends Bucket>

java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
org.nuxeo.elasticsearch.aggregate.AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,B>
org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate<B>
All Implemented Interfaces:
Aggregate<B>
Direct Known Subclasses:
DateHistogramAggregate, DateRangeAggregate, HistogramAggregate, RangeAggregate, SignificantTermAggregate, TermAggregate

public abstract class MultiBucketAggregate<B extends Bucket> extends AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,B>
An aggregate that returns multiple buckets.
Since:
10.3
  • Constructor Details

  • Method Details

    • parseAggregation

      public void parseAggregation(org.opensearch.search.aggregations.bucket.MultiBucketsAggregation aggregation)
      Description copied from class: AggregateEsBase
      Extract the aggregation from the Elasticsearch response
      Specified by:
      parseAggregation in class AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,B extends Bucket>
    • parseEsBuckets

      public abstract void parseEsBuckets(Collection<? extends org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
      Extract the buckets from the Elasticsearch response