public class SearchContextAggregations
extends java.lang.Object
Constructor | Description |
---|---|
SearchContextAggregations(AggregatorFactories factories,
MultiBucketConsumerService.MultiBucketConsumer multiBucketConsumer) |
Creates a new aggregation context with the parsed aggregator factories
|
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
|
public SearchContextAggregations(AggregatorFactories factories, MultiBucketConsumerService.MultiBucketConsumer multiBucketConsumer)
public AggregatorFactories factories()
public Aggregator[] aggregators()
public void aggregators(Aggregator[] aggregators)
aggregators
- The top level aggregators of the search execution.public java.util.function.IntConsumer multiBucketConsumer()