Class DelayedBucket<B extends InternalMultiBucketAggregation.InternalBucket>
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 Summary
ConstructorDescriptionDelayedBucket(BiFunction<List<B>,InternalAggregation.ReduceContext,B> reduce, InternalAggregation.ReduceContext reduceContext, List<B> toReduce)
Build a delayed bucket. -
Method Summary
-
Constructor Details
-
DelayedBucket
public DelayedBucket(BiFunction<List<B>,InternalAggregation.ReduceContext,B> reduce, InternalAggregation.ReduceContext reduceContext, List<B> toReduce)Build a delayed bucket.We take a
BiFunction
to match the signature ofInternalMultiBucketAggregation.reduceBucket(java.util.List<B>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext)
.
-
-
Method Details