Interface AggregateFunction.OfLong<ACC>

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

public static interface AggregateFunction.OfLong<ACC> extends AggregateFunction<ACC>
long-input convenience: coerces the sample (a floating one rounded half-even) and calls addLong(ACC, long).
  • Method Details

    • addLong

      void addLong(ACC acc, long 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>