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