Module org.elasticsearch.compute
Class FirstLongByTimestampAggregator
java.lang.Object
org.elasticsearch.compute.aggregation.FirstLongByTimestampAggregator
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 Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(FirstLongByTimestampAggregator.GroupingState current, int groupId, long value, long timestamp) static voidcombine(org.elasticsearch.compute.aggregation.LongLongState current, long value, long timestamp) static voidcombineIntermediate(FirstLongByTimestampAggregator.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(FirstLongByTimestampAggregator.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
-
FirstLongByTimestampAggregator
public FirstLongByTimestampAggregator()
-
-
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
public static FirstLongByTimestampAggregator.GroupingState initGrouping(DriverContext driverContext) -
combine
public static void combine(FirstLongByTimestampAggregator.GroupingState current, int groupId, long value, long timestamp) -
combineIntermediate
public static void combineIntermediate(FirstLongByTimestampAggregator.GroupingState current, int groupId, LongBlock timestamps, LongBlock values, int otherPosition) -
evaluateFinal
public static Block evaluateFinal(FirstLongByTimestampAggregator.GroupingState state, IntVector selected, GroupingAggregatorEvaluationContext ctx)
-