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