Module org.elasticsearch.compute
Class LastFloatByTimestampAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.LastFloatByTimestampAggregator
A time-series aggregation function that collects the Last occurrence value of a time series in a specified interval.
This class is generated. Edit `X-ValueByTimestampAggregator.java.st` instead.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(LastFloatByTimestampAggregator.GroupingState current, int groupId, float value, long timestamp) static voidcombine(org.elasticsearch.compute.aggregation.LongFloatState current, float value, long timestamp) static voidcombineIntermediate(LastFloatByTimestampAggregator.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(LastFloatByTimestampAggregator.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
-
LastFloatByTimestampAggregator
public LastFloatByTimestampAggregator()
-
-
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 LastFloatByTimestampAggregator.GroupingState initGrouping(DriverContext driverContext) -
combine
public static void combine(LastFloatByTimestampAggregator.GroupingState current, int groupId, float value, long timestamp) -
combineIntermediate
public static void combineIntermediate(LastFloatByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, FloatBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(LastFloatByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-