java.util.function.IntConsumerpublic static class MultiBucketConsumerService.MultiBucketConsumer
extends java.lang.Object
implements java.util.function.IntConsumer
IntConsumer that throws a MultiBucketConsumerService.TooManyBucketsException
when 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 during
Aggregator.buildAggregation(long) and InternalAggregation.reduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext).| Constructor | Description |
|---|---|
MultiBucketConsumer(int limit) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(int value) |
|
int |
getCount() |
|
void |
reset() |