io.deephaven.api.updateby.spec.CumProdSpec 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.updateby.spec;
import io.deephaven.annotations.SingletonStyle;
import org.immutables.value.Value.Immutable;
/**
* A {@link UpdateBySpec} for performing a Cumulative Product of the specified columns.
*/
@Immutable
@SingletonStyle
public abstract class CumProdSpec extends UpdateBySpecBase {
public static CumProdSpec of() {
return ImmutableCumProdSpec.of();
}
@Override
public final boolean applicableTo(Class> inputType) {
// is primitive or boxed numeric?
return applicableToNumeric(inputType);
}
@Override
public final T walk(Visitor visitor) {
return visitor.visit(this);
}
}