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(org.elasticsearch.common.util.LongArray) and InternalAggregation.getReducer(AggregationReduceContext, int). The limit can be set by changing the `search.max_buckets` cluster setting and defaults to 65536.
  • Field Details

    • DEFAULT_MAX_BUCKETS

      public static final int DEFAULT_MAX_BUCKETS
      See Also:
    • MAX_BUCKET_SETTING

      public static final Setting<Integer> MAX_BUCKET_SETTING
  • Constructor Details

  • Method Details

    • createForFinal

      public IntConsumer createForFinal()
    • createForPartial

      public IntConsumer createForPartial()
    • getLimit

      public int getLimit()