Package io.deephaven.api.agg.spec
Class AggSpecFormula
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecFormula
- All Implemented Interfaces:
AggSpec
Specifies an aggregation that applies a
formula
to each input group (as a Deephaven vector
(io.deephaven.vector.Vector)) to produce the corresponding output value. Each input column name is substituted for
the param token
for evaluation.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Get a simple description for this AggSpec.abstract String
formula()
The formula to use to calculate output values from grouped input values.static AggSpecFormula
Creates a new AggSpecFormula withparamToken
of "each".static AggSpecFormula
Creates a new AggSpecFormula.abstract String
The formula parameter token to be replaced with the input column name for evaluation.final <V extends AggSpec.Visitor>
Vwalk
(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor
.Methods inherited from class io.deephaven.api.agg.spec.AggSpecBase
aggregation, aggregation, aggregation
-
Field Details
-
PARAM_TOKEN_DEFAULT
- See Also:
-
-
Constructor Details
-
AggSpecFormula
public AggSpecFormula()
-
-
Method Details
-
of
- Parameters:
formula
- the formula- Returns:
- the AggSpecFormula
-
of
Creates a new AggSpecFormula.- Parameters:
formula
- the formulaparamToken
- the param token- Returns:
- the AggSpecFormula
-
description
Description copied from interface:AggSpec
Get a simple description for this AggSpec.- Returns:
- The description
-
formula
The formula to use to calculate output values from grouped input values.- Returns:
- The formula
-
paramToken
The formula parameter token to be replaced with the input column name for evaluation.- Returns:
- The parameter token
-
walk
Description copied from interface:AggSpec
Glue method to deliver this AggSpec to aAggSpec.Visitor
.- Parameters:
visitor
- The visitor- Returns:
- The visitor
-