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, IntConsumer multiBucketConsumer) ForPartial(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregatorFactories.Builder builders, IntConsumer multiBucketConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsumeBucketCountAndMaybeBreak(int size) protected AggregationReduceContextbooleanReturnstrueiff 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, IntConsumer multiBucketConsumer) -
ForPartial
public ForPartial(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregationBuilder builder, IntConsumer multiBucketConsumer)
-
-
Method Details
-
isFinalReduce
public boolean isFinalReduce()Description copied from class:AggregationReduceContextReturnstrueiff the current reduce phase is the final reduce phase. This indicates if operations like pipeline aggregations should be applied or if specific features likeminDocCountshould be taken into account. Operations that are potentially losing information can only be applied during the final reduce phase.- Specified by:
isFinalReducein classAggregationReduceContext
-
consumeBucketCountAndMaybeBreak
protected void consumeBucketCountAndMaybeBreak(int size) - Specified by:
consumeBucketCountAndMaybeBreakin classAggregationReduceContext
-
pipelineTreeRoot
Description copied from class:AggregationReduceContextThe root of the tree of pipeline aggregations for this request.- Specified by:
pipelineTreeRootin classAggregationReduceContext
-
forSubAgg
- Specified by:
forSubAggin classAggregationReduceContext
-