Module org.elasticsearch.compute
Class FirstFloatByTimestampAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.FirstFloatByTimestampAggregator
A time-series aggregation function that collects the First occurrence value of a time series in a specified interval.
This class is generated. Edit `X-ValueByTimestampAggregator.java.st` instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(FirstFloatByTimestampAggregator.GroupingState current, int groupId, float value, long timestamp) static voidcombine(org.elasticsearch.compute.aggregation.LongFloatState current, float value, long timestamp) static voidcombineIntermediate(FirstFloatByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, FloatBlock values, int otherPosition) static voidcombineIntermediate(org.elasticsearch.compute.aggregation.LongFloatState current, long timestamp, float value, boolean seen) static Stringdescribe()static BlockevaluateFinal(FirstFloatByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx) static BlockevaluateFinal(org.elasticsearch.compute.aggregation.LongFloatState current, DriverContext ctx) static voidfirst(org.elasticsearch.compute.aggregation.LongFloatState current, float value, long timestamp) initGrouping(DriverContext driverContext) static org.elasticsearch.compute.aggregation.LongFloatStateinitSingle(DriverContext driverContext)
-
Constructor Details
-
FirstFloatByTimestampAggregator
public FirstFloatByTimestampAggregator()
-
-
Method Details
-
describe
-
initSingle
public static org.elasticsearch.compute.aggregation.LongFloatState initSingle(DriverContext driverContext) -
first
public static void first(org.elasticsearch.compute.aggregation.LongFloatState current, float value, long timestamp) -
combine
public static void combine(org.elasticsearch.compute.aggregation.LongFloatState current, float value, long timestamp) -
combineIntermediate
public static void combineIntermediate(org.elasticsearch.compute.aggregation.LongFloatState current, long timestamp, float value, boolean seen) -
evaluateFinal
public static Block evaluateFinal(org.elasticsearch.compute.aggregation.LongFloatState current, DriverContext ctx) -
initGrouping
public static FirstFloatByTimestampAggregator.GroupingState initGrouping(DriverContext driverContext) -
combine
public static void combine(FirstFloatByTimestampAggregator.GroupingState current, int groupId, float value, long timestamp) -
combineIntermediate
public static void combineIntermediate(FirstFloatByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, FloatBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(FirstFloatByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-