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.
  • Constructor Details

  • Method Details

    • reduced

      public B reduced()
      The reduced bucket. If the bucket hasn't been reduced already this will reduce the sub-aggs and throw out the list to reduce.
    • getDocCount

      public long getDocCount()
      Count the documents in the buckets.
    • toString

      public String toString()
      Overrides:
      toString in class Object