Package io.deephaven.api.updateby.spec
Class RollingFormulaSpec
java.lang.Object
io.deephaven.api.updateby.spec.UpdateBySpecBase
io.deephaven.api.updateby.spec.RollingOpSpec
io.deephaven.api.updateby.spec.RollingFormulaSpec
- All Implemented Interfaces:
UpdateBySpec
An
UpdateBySpec
for performing a windowed rolling formula operation.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.updateby.spec.UpdateBySpec
UpdateBySpec.Visitor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
applicableTo
(Class<?> inputType) Determine if this spec can be applied to the specified typeabstract String
formula()
The formula to use to calculate output values.static RollingFormulaSpec
of
(WindowScale revWindowScale, WindowScale fwdWindowScale, String formula) static RollingFormulaSpec
of
(WindowScale revWindowScale, WindowScale fwdWindowScale, String formula, String paramToken) static RollingFormulaSpec
of
(WindowScale revWindowScale, String formula) static RollingFormulaSpec
of
(WindowScale revWindowScale, String formula, String paramToken) static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
static RollingFormulaSpec
ofTime
(String timestampCol, Duration revDuration, Duration fwdDuration, String formula, String paramToken) Deprecated.final <T> T
walk
(UpdateBySpec.Visitor<T> visitor) Methods inherited from class io.deephaven.api.updateby.spec.RollingOpSpec
fwdWindowScale, revWindowScale
-
Constructor Details
-
RollingFormulaSpec
public RollingFormulaSpec()
-
-
Method Details
-
formula
The formula to use to calculate output values. The formula is similar toTableOperations.update(java.lang.String...)
andTableOperations.updateView(java.lang.String...)
in specifying the output column name and the expression to compute in terms of the input columns. (e.g."outputCol = sum(inputColA + inputColB)"
).The alternative (and deprecated) form for
formula()
is active whenparamToken()
is provided. In this case the formula should only contain the expression in terms of the token. (e.g.sum(x)
where x is theparamToken()
). NOTE: This form is deprecated and will be removed in a future release. -
paramToken
Deprecated.(Deprecated) The token to use informula()
to represent the input column. If this parameter is provided, then only a single input column can be provided in the formula. -
ofTicks
-
ofTicks
public static RollingFormulaSpec ofTicks(long revTicks, long fwdTicks, String formula, String paramToken) -
ofTime
public static RollingFormulaSpec ofTime(String timestampCol, Duration revDuration, String formula, String paramToken) -
ofTime
-
ofTime
public static RollingFormulaSpec ofTime(String timestampCol, long revDuration, String formula, String paramToken) -
ofTime
public static RollingFormulaSpec ofTime(String timestampCol, long revDuration, long fwdDuration, String formula, String paramToken) -
ofTicks
-
ofTicks
-
ofTime
-
ofTime
public static RollingFormulaSpec ofTime(String timestampCol, Duration revDuration, Duration fwdDuration, String formula) -
ofTime
-
ofTime
public static RollingFormulaSpec ofTime(String timestampCol, long revDuration, long fwdDuration, String formula) -
of
-
of
public static RollingFormulaSpec of(WindowScale revWindowScale, WindowScale fwdWindowScale, String formula, String paramToken) -
of
-
of
public static RollingFormulaSpec of(WindowScale revWindowScale, WindowScale fwdWindowScale, String formula) -
selectable
-
applicableTo
Description copied from interface:UpdateBySpec
Determine if this spec can be applied to the specified type- Parameters:
inputType
- the specified input type- Returns:
- true if this spec can be applied to the specified input type
-
walk
-