Module org.elasticsearch.server
Class MultiBucketConsumerService.MultiBucketConsumer
java.lang.Object
org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer
- All Implemented Interfaces:
IntConsumer
- Enclosing class:
- MultiBucketConsumerService
public static class MultiBucketConsumerService.MultiBucketConsumer
extends Object
implements IntConsumer
An
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.buildAggregations(org.elasticsearch.common.util.LongArray)
and InternalAggregation.getReducer(AggregationReduceContext, int)
.-
Constructor Details
-
MultiBucketConsumer
-
-
Method Details
-
accept
public void accept(int value) - Specified by:
accept
in interfaceIntConsumer
-
getCount
public int getCount()
-