Module org.elasticsearch.compute
Class LastLongByTimestampAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.LastLongByTimestampAggregator
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(LastLongByTimestampAggregator.GroupingState current, int groupId, long value, long timestamp) static voidcombine(org.elasticsearch.compute.aggregation.LongLongState current, long value, long timestamp) static voidcombineIntermediate(LastLongByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, LongBlock values, int otherPosition) static voidcombineIntermediate(org.elasticsearch.compute.aggregation.LongLongState current, long timestamp, long value, boolean seen) static Stringdescribe()static BlockevaluateFinal(LastLongByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx) static BlockevaluateFinal(org.elasticsearch.compute.aggregation.LongLongState current, DriverContext ctx) static voidfirst(org.elasticsearch.compute.aggregation.LongLongState current, long value, long timestamp) initGrouping(DriverContext driverContext) static org.elasticsearch.compute.aggregation.LongLongStateinitSingle(DriverContext driverContext)
-
Constructor Details
-
LastLongByTimestampAggregator
public LastLongByTimestampAggregator()
-
-
Method Details
-
describe
-
initSingle
public static org.elasticsearch.compute.aggregation.LongLongState initSingle(DriverContext driverContext) -
first
public static void first(org.elasticsearch.compute.aggregation.LongLongState current, long value, long timestamp) -
combine
public static void combine(org.elasticsearch.compute.aggregation.LongLongState current, long value, long timestamp) -
combineIntermediate
public static void combineIntermediate(org.elasticsearch.compute.aggregation.LongLongState current, long timestamp, long value, boolean seen) -
evaluateFinal
public static Block evaluateFinal(org.elasticsearch.compute.aggregation.LongLongState current, DriverContext ctx) -
initGrouping
-
combine
public static void combine(LastLongByTimestampAggregator.GroupingState current, int groupId, long value, long timestamp) -
combineIntermediate
public static void combineIntermediate(LastLongByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, LongBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(LastLongByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-