Module org.elasticsearch.server
Class AggregationReduceContext.ForFinal
java.lang.Object
org.elasticsearch.search.aggregations.AggregationReduceContext
org.elasticsearch.search.aggregations.AggregationReduceContext.ForFinal
- Enclosing class:
 - AggregationReduceContext
 
A AggregationReduceContext to perform the final reduction.
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationReduceContext
AggregationReduceContext.Builder, AggregationReduceContext.ForFinal, AggregationReduceContext.ForPartial - 
Constructor Summary
ConstructorsConstructorDescriptionForFinal(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregationBuilder builder, IntConsumer multiBucketConsumer, PipelineAggregator.PipelineTree pipelineTreeRoot) ForFinal(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
- 
ForFinal
public ForFinal(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregatorFactories.Builder builders, IntConsumer multiBucketConsumer)  - 
ForFinal
public ForFinal(BigArrays bigArrays, ScriptService scriptService, Supplier<Boolean> isCanceled, AggregationBuilder builder, IntConsumer multiBucketConsumer, PipelineAggregator.PipelineTree pipelineTreeRoot)  
 - 
 - 
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
 
 -