Class DelayedBucket<B extends InternalMultiBucketAggregation.InternalBucket>
org.elasticsearch.search.aggregations.DelayedBucket<B>
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
ConstructorDescription<<B>,InternalAggregation.ReduceContext,B> reduce, InternalAggregation.ReduceContext reduceContext, <B> toReduce)
Build a delayed bucket. -
Method Summary
Methods inherited from class java.lang.
, , , , , , , , ,
-
Constructor Details
-
DelayedBucket
public DelayedBucket(<<B>,InternalAggregation.ReduceContext,B> reduce, InternalAggregation.ReduceContext reduceContext, <B> toReduce)Build a delayed bucket.We take a to match the signature of
InternalMultiBucketAggregation.reduceBucket(java.util.List<B>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext)
.
-
-
Method Details
-
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 toString()- Overrides:
in class
-