java.lang.Object
org.elasticsearch.search.aggregations.bucket.DelayedBucketReducer<B>

public final class DelayedBucketReducer<B extends MultiBucketsAggregation.Bucket> extends Object
Class for reducing a list of DelayedBucketReducer to a single InternalAggregations and the number of documents in a delayable fashion. This class can be reused by calling reset(B).
See Also:
  • Constructor Details

  • Method Details

    • accept

      public void accept(B bucket)
      Adds a DelayedBucketReducer for reduction.
    • getProto

      public B getProto()
      returns the bucket prototype.
    • reset

      public void reset(B proto)
      Reset the content of this reducer.
    • getAggregations

      public InternalAggregations getAggregations()
      returns the reduced InternalAggregations.
    • getDocCount

      public long getDocCount()
      returns the number of docs