Class MultiBucketConsumerService.MultiBucketConsumer
- java.lang.Object
-
- org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer
-
- All Implemented Interfaces:
java.util.function.IntConsumer
- Enclosing class:
- MultiBucketConsumerService
public static class MultiBucketConsumerService.MultiBucketConsumer extends java.lang.Object implements java.util.function.IntConsumerAnIntConsumerthat throws aMultiBucketConsumerService.TooManyBucketsExceptionwhen the sum of the provided values is above the limit (`search.max_buckets`). It is used by aggregators to limit the number of bucket creation duringAggregator.buildAggregation(long)andInternalAggregation.reduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext).
-
-
Constructor Summary
Constructors Constructor Description MultiBucketConsumer(int limit)
-