SumOf

interface SumOf<T> : Computation(source)

Computed value which computes the sum of all values in a column of a table at tablePath. Values of type Int, Long, Double, BigInteger, and BigDecimal are supported.

Specify the column over which to compute the sum, relative to a row of the table, via columnPath.

Column values should be (possibly) nullable numeric values.

Example usage:

ComputedSchema(SumOf("../table", Row::column)) {
LongSchema()
}

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val columnPath: Path

Path of the table column over which to compute the sum, relative to a row of the table.

Link copied to clipboard

Dependencies of the computation. Mapping of keys to the paths this computation depends on. Keys can be used within a ComputationContext to access the value of the dependencies.

Link copied to clipboard

Set of external context dependencies of the computation.

Link copied to clipboard
abstract val tablePath: Path

Path of the table over which to compute the sum.