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