Module org.elasticsearch.compute
Class AnyFloatAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.AnyFloatAggregator
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(AnyFloatAggregator.GroupingState current, int group, int position, FloatBlock values) static voidcombine(AnyFloatAggregator.SingleState current, int position, FloatBlock values) static voidcombineIntermediate(AnyFloatAggregator.GroupingState current, int group, boolean observed, FloatBlock values, int otherPosition) static voidcombineIntermediate(AnyFloatAggregator.SingleState current, boolean observed, FloatBlock values) static Stringdescribe()static BlockevaluateFinal(AnyFloatAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx) static BlockevaluateFinal(AnyFloatAggregator.SingleState current, DriverContext ctx) initGrouping(DriverContext driverContext) initSingle(DriverContext driverContext)
-
Constructor Details
-
AnyFloatAggregator
public AnyFloatAggregator()
-
-
Method Details
-
describe
-
initSingle
-
combine
-
combineIntermediate
public static void combineIntermediate(AnyFloatAggregator.SingleState current, boolean observed, FloatBlock values) -
evaluateFinal
-
initGrouping
-
combine
public static void combine(AnyFloatAggregator.GroupingState current, int group, int position, FloatBlock values) -
combineIntermediate
public static void combineIntermediate(AnyFloatAggregator.GroupingState current, int group, boolean observed, FloatBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(AnyFloatAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-