public static class InternalAggregation.ReduceContext
extends java.lang.Object
Constructor and Description |
---|
ReduceContext(BigArrays bigArrays,
ScriptService scriptService,
boolean isFinalReduce) |
Modifier and Type | Method and Description |
---|---|
BigArrays |
bigArrays() |
boolean |
isFinalReduce()
Returns
true iff the current reduce phase is the final reduce phase. |
ScriptService |
scriptService() |
public ReduceContext(BigArrays bigArrays, ScriptService scriptService, boolean isFinalReduce)
public boolean isFinalReduce()
true
iff the current reduce phase is the final reduce phase. This indicates if operations like
pipeline aggregations should be applied or if specific features like minDocCount should be taken into account.
Operations that are potentially loosing information can only be applied during the final reduce phase.public BigArrays bigArrays()
public ScriptService scriptService()