Module org.elasticsearch.server
Class SearchContextAggregations
java.lang.Object
org.elasticsearch.search.aggregations.SearchContextAggregations
The aggregation context that is part of the search context.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchContextAggregations
(AggregatorFactories factories, Supplier<AggregationReduceContext.Builder> toAggregationReduceContextBuilder) Creates a new aggregation context with the parsed aggregator factories -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for the reduce context.org.apache.lucene.search.CollectorManager<AggregatorCollector,
Void> Returns the collector to be run for the aggregations phaseboolean
Returns if the aggregations needs to execute in sort order.void
registerAggsCollectorManager
(org.apache.lucene.search.CollectorManager<AggregatorCollector, Void> aggCollectorManager) Registers the collector to be run for the aggregations phase
-
Constructor Details
-
SearchContextAggregations
public SearchContextAggregations(AggregatorFactories factories, Supplier<AggregationReduceContext.Builder> toAggregationReduceContextBuilder) Creates a new aggregation context with the parsed aggregator factories
-
-
Method Details
-
factories
-
registerAggsCollectorManager
public void registerAggsCollectorManager(org.apache.lucene.search.CollectorManager<AggregatorCollector, Void> aggCollectorManager) Registers the collector to be run for the aggregations phase -
getAggsCollectorManager
public org.apache.lucene.search.CollectorManager<AggregatorCollector,Void> getAggsCollectorManager()Returns the collector to be run for the aggregations phase -
isInSortOrderExecutionRequired
public boolean isInSortOrderExecutionRequired()Returns if the aggregations needs to execute in sort order. -
getAggregationReduceContextBuilder
Returns a builder for the reduce context.
-