Interface AggregateFunction.OfBoolean<ACC>

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

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

    • addBoolean

      void addBoolean(ACC acc, boolean 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>