io.epiphanous.flinkrunner.model.aggregate
Compute a dynamic bin for the requested quantity.
Compute a dynamic bin for the requested quantity. This picks a bin based on the order of magnitude of the quantity in the aggregate's preferred unit. If the order of magnitude is 3 (say the value is 2345) For instance if the quantity value is 0.00157, its order of magnitude is -3. We reduce that in absolute value by 1 (= -2) to compute the min and max of the bin as [floor(0.0157 * 10**2)/10**2 (= 0.01) and ceil(0.0157 * 10**2)/10**2 (= 0.02).
the quantity to compute a bin of
Update the aggregate with a Quantity.
Most common entry point for updating aggregates.
Most common entry point for updating aggregates.
Double value of quantity to update aggregate with
String unit of quantity to update aggregate with
event timestamp of value
allows caller to customize unit system mappings
Update dependent aggregations.
Update dependent aggregations.
the type of the quantity
the quantity being added to the aggregations
the instant associated with the new quantity
a unit mapper
Used by some subclasses to update the underlying aggregate value as a Quantity.
Used by some subclasses to update the underlying aggregate value as a Quantity.
When this is called, any dependent aggregations will be updated and passed into
the depAggs parameter. You can find the previous dependent aggregations in
this.dependentAggregations
if you need them.
the dimension of the quantity
Quantity value of the aggregate
Quantity the new quantity to incorporate into the aggregate
dependent aggregations already updated with the new quantity
A