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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregator[]
aggregators()
void
aggregators(Aggregator[] aggregators)
Registers all the created aggregators (top level aggregators) for the search execution context.AggregatorFactories
factories()
java.util.function.IntConsumer
multiBucketConsumer()
Returns a consumer for multi bucket aggregation that checks the total number of buckets created in the response
-
-
-
Constructor Detail
-
SearchContextAggregations
public SearchContextAggregations(AggregatorFactories factories, MultiBucketConsumerService.MultiBucketConsumer multiBucketConsumer)
Creates a new aggregation context with the parsed aggregator factories
-
-
Method Detail
-
factories
public AggregatorFactories factories()
-
aggregators
public Aggregator[] aggregators()
-
aggregators
public void aggregators(Aggregator[] 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
public java.util.function.IntConsumer multiBucketConsumer()
Returns a consumer for multi bucket aggregation that checks the total number of buckets created in the response
-
-