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
AnIntConsumerthat 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(int value)intgetCount()intgetLimit()voidreset()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.IntConsumer
andThen
-
-
-
-
Method Detail
-
accept
public void accept(int value)
- Specified by:
acceptin interfaceIntConsumer
-
reset
public void reset()
-
getCount
public int getCount()
-
getLimit
public int getLimit()
-
-