Interface AggregateFunction.OfDouble<ACC>

All Superinterfaces:
AggregateFunction<ACC>
Enclosing interface:
AggregateFunction<ACC>

public static interface AggregateFunction.OfDouble<ACC> extends AggregateFunction<ACC>
double-input convenience: coerces the sample and calls addDouble(ACC, double).
  • Method Details

    • addDouble

      void addDouble(ACC acc, double value)
    • add

      default ACC add(ACC acc, long tsMs, @Nullable Object value, @Nullable QualityCode quality)
      Description copied from interface: AggregateFunction
      One sample, in timestamp order. Returns the accumulator to keep: the same one, or a fresh one. A quality-gated fold sees only the samples the query's filter admits; the others see every sample with its quality.
      Specified by:
      add in interface AggregateFunction<ACC>