Class SearchContextAggregations
java.lang.Object
org.elasticsearch.search.aggregations.SearchContextAggregations
public class SearchContextAggregations
extends java.lang.Object
The aggregation context that is part of the search context.
-
Constructor Summary
Constructors Constructor Description SearchContextAggregations(AggregatorFactories factories, MultiBucketConsumerService.MultiBucketConsumer multiBucketConsumer)Creates a new aggregation context with the parsed aggregator factories -
Method Summary
Modifier and Type Method Description Aggregator[]aggregators()voidaggregators(Aggregator[] aggregators)Registers all the created aggregators (top level aggregators) for the search execution context.AggregatorFactoriesfactories()MultiBucketConsumerService.MultiBucketConsumermultiBucketConsumer()Returns a consumer for multi bucket aggregation that checks the total number of buckets created in the response
-
Constructor Details
-
SearchContextAggregations
public SearchContextAggregations(AggregatorFactories factories, MultiBucketConsumerService.MultiBucketConsumer multiBucketConsumer)Creates a new aggregation context with the parsed aggregator factories
-
-
Method Details
-
factories
-
aggregators
-
aggregators
Registers all the created aggregators (top level aggregators) for the search execution context.- Parameters:
aggregators- The top level aggregators of the search execution.
-
multiBucketConsumer
Returns a consumer for multi bucket aggregation that checks the total number of buckets created in the response
-