java.lang.Object
org.elasticsearch.search.aggregations.DelayedBucket<B>

public final class DelayedBucket<B extends InternalMultiBucketAggregation.InternalBucket> extends Object
A wrapper around reducing buckets with the same key that can delay that reduction as long as possible. It's stateful and not even close to thread safe.

It is responsibility of the caller to account for buckets created using DelayedBucket. It should call nonCompetitive(org.elasticsearch.search.aggregations.AggregationReduceContext) to release any possible sub-bucket creation if a bucket is rejected from the final response.

  • Constructor Details

    • DelayedBucket

      public DelayedBucket(List<B> toReduce)
      Build a delayed bucket.
  • Method Details