io.deephaven.api.agg.spec.AggSpecAbsSum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-table-api Show documentation
Show all versions of deephaven-table-api Show documentation
The Deephaven table operations API
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.api.agg.spec;
import io.deephaven.annotations.SingletonStyle;
import io.deephaven.api.TableOperations;
import org.immutables.value.Value.Immutable;
/**
* Specifies an aggregation that outputs the sum of absolute input values for each group. Only works with numeric input
* types and {@link Boolean}.
*
* {@link Boolean} inputs are aggregated according to the following rules:
*
* - If any input value is {@code true}, the output value is {@code true}
* - If there are no non-{@code null} input values, the output value is {@code null}
* - Else all input values must be {@code false}, and the output value is {@code false}
*
*
* @see TableOperations#absSumBy
*/
@Immutable
@SingletonStyle
public abstract class AggSpecAbsSum extends AggSpecEmptyBase {
public static AggSpecAbsSum of() {
return ImmutableAggSpecAbsSum.of();
}
@Override
public final String description() {
return "absolute sum";
}
@Override
public final V walk(V visitor) {
visitor.visit(this);
return visitor;
}
}