Class MultiBucketConsumerService

java.lang.Object
org.elasticsearch.search.aggregations.MultiBucketConsumerService

public class MultiBucketConsumerService extends Object
An aggregation service that creates instances of MultiBucketConsumerService.MultiBucketConsumer. The consumer is used by BucketsAggregator and InternalMultiBucketAggregation to limit the number of buckets created in Aggregator.buildAggregations(long[]) and InternalAggregation.reduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation>, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext). The limit can be set by changing the `search.max_buckets` cluster setting and defaults to 65536.