Module org.elasticsearch.compute
Class AnyDoubleAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.AnyDoubleAggregator
An aggregator that retrieves the first value it encounters. It is useful in cases where we want to get back the
first (or last) value of a field, where the sort field is either null or a constant literal. In such cases, any
value from the search field will suffice, and the state needs to be updated at most once.
This class is generated. Edit `X-AnyValueAggregator.java.st` instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(AnyDoubleAggregator.GroupingState current, int group, int position, DoubleBlock values) static voidcombine(AnyDoubleAggregator.SingleState current, int position, DoubleBlock values) static voidcombineIntermediate(AnyDoubleAggregator.GroupingState current, int group, boolean observed, DoubleBlock values, int otherPosition) static voidcombineIntermediate(AnyDoubleAggregator.SingleState current, boolean observed, DoubleBlock values) static Stringdescribe()static BlockevaluateFinal(AnyDoubleAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx) static BlockevaluateFinal(AnyDoubleAggregator.SingleState current, DriverContext ctx) initGrouping(DriverContext driverContext) initSingle(DriverContext driverContext)
-
Constructor Details
-
AnyDoubleAggregator
public AnyDoubleAggregator()
-
-
Method Details
-
describe
-
initSingle
-
combine
public static void combine(AnyDoubleAggregator.SingleState current, int position, DoubleBlock values) -
combineIntermediate
public static void combineIntermediate(AnyDoubleAggregator.SingleState current, boolean observed, DoubleBlock values) -
evaluateFinal
-
initGrouping
-
combine
public static void combine(AnyDoubleAggregator.GroupingState current, int group, int position, DoubleBlock values) -
combineIntermediate
public static void combineIntermediate(AnyDoubleAggregator.GroupingState current, int group, boolean observed, DoubleBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(AnyDoubleAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-