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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGet a simple description for this AggSpec.abstract Stringformula()The formula to use to calculate output values from grouped input values.static AggSpecFormulaCreates a new AggSpecFormula withparamTokenof "each".static AggSpecFormulaCreates a new AggSpecFormula.abstract StringThe 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:AggSpecGet 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:AggSpecGlue method to deliver this AggSpec to aAggSpec.Visitor.- Parameters:
visitor- The visitor- Returns:
- The visitor
-