Module org.elasticsearch.server
Class AggregationReduceContext.ForPartial
java.lang.Object
org.elasticsearch.search.aggregations.AggregationReduceContext
org.elasticsearch.search.aggregations.AggregationReduceContext.ForPartial
- Enclosing class:
- AggregationReduceContext
A AggregationReduceContext to perform a partial reduction.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationReduceContext
AggregationReduceContext.Builder, AggregationReduceContext.ForFinal, AggregationReduceContext.ForPartial
-
Constructor Summary
ConstructorsConstructorDescriptionForPartial
(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregationBuilder builder) ForPartial
(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregatorFactories.Builder builders) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
consumeBucketCountAndMaybeBreak
(int size) protected AggregationReduceContext
boolean
Returnstrue
iff the current reduce phase is the final reduce phase.The root of the tree of pipeline aggregations for this request.Methods inherited from class org.elasticsearch.search.aggregations.AggregationReduceContext
bigArrays, builder, consumeBucketsAndMaybeBreak, forAgg, isCanceled, scriptService
-
Constructor Details
-
ForPartial
public ForPartial(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregatorFactories.Builder builders) -
ForPartial
public ForPartial(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregationBuilder builder)
-
-
Method Details
-
isFinalReduce
public boolean isFinalReduce()Description copied from class:AggregationReduceContext
Returnstrue
iff the current reduce phase is the final reduce phase. This indicates if operations like pipeline aggregations should be applied or if specific features likeminDocCount
should be taken into account. Operations that are potentially losing information can only be applied during the final reduce phase.- Specified by:
isFinalReduce
in classAggregationReduceContext
-
consumeBucketCountAndMaybeBreak
protected void consumeBucketCountAndMaybeBreak(int size) - Specified by:
consumeBucketCountAndMaybeBreak
in classAggregationReduceContext
-
pipelineTreeRoot
Description copied from class:AggregationReduceContext
The root of the tree of pipeline aggregations for this request.- Specified by:
pipelineTreeRoot
in classAggregationReduceContext
-
forSubAgg
- Specified by:
forSubAgg
in classAggregationReduceContext
-