Class MultiBucketConsumerService
java.lang.Object
org.elasticsearch.search.aggregations.MultiBucketConsumerService
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.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AnIntConsumer
that throws aMultiBucketConsumerService.TooManyBucketsException
when the sum of the provided values is above the limit (`search.max_buckets`).static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
-
Constructor Summary
ConstructorDescriptionMultiBucketConsumerService(ClusterService clusterService, Settings settings, CircuitBreaker breaker)
-
Method Summary
-
Field Details
-
DEFAULT_MAX_BUCKETS
public static final int DEFAULT_MAX_BUCKETS- See Also:
- Constant Field Values
-
MAX_BUCKET_SETTING
-
-
Constructor Details
-
MultiBucketConsumerService
public MultiBucketConsumerService(ClusterService clusterService, Settings settings, CircuitBreaker breaker)
-
-
Method Details
-
create
-