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