Class MultiBucketConsumerService.MultiBucketConsumer
org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer
- All Implemented Interfaces:
- Enclosing class:
- MultiBucketConsumerService
public static class MultiBucketConsumerService.MultiBucketConsumer
extends
implements
An 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(long[])
and InternalAggregation.reduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext)
.-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface java.util.function.
-
Constructor Details
-
MultiBucketConsumer
-
-
Method Details
-
accept
public void accept(int value)- Specified by:
in interface
-
reset
public void reset() -
getCount
public int getCount() -
getLimit
public int getLimit()
-