Package io.deephaven.api.updateby.spec
Class RollingWAvgSpec
java.lang.Object
io.deephaven.api.updateby.spec.UpdateBySpecBase
io.deephaven.api.updateby.spec.RollingOpSpec
io.deephaven.api.updateby.spec.RollingWAvgSpec
- All Implemented Interfaces:
UpdateBySpec
A
UpdateBySpec
for performing a windowed rolling weighted average across the specified columns-
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 typestatic RollingWAvgSpec
of
(WindowScale revWindowScale, WindowScale fwdWindowScale, String weightCol) static RollingWAvgSpec
of
(WindowScale revWindowScale, String weightCol) static RollingWAvgSpec
static RollingWAvgSpec
static RollingWAvgSpec
static RollingWAvgSpec
static RollingWAvgSpec
static RollingWAvgSpec
final <T> T
walk
(UpdateBySpec.Visitor<T> visitor) abstract String
final boolean
weightColumnApplicableTo
(Class<?> inputType) Methods inherited from class io.deephaven.api.updateby.spec.RollingOpSpec
fwdWindowScale, revWindowScale
-
Constructor Details
-
RollingWAvgSpec
public RollingWAvgSpec()
-
-
Method Details
-
weightCol
-
ofTicks
-
ofTicks
-
ofTime
-
ofTime
public static RollingWAvgSpec ofTime(String timestampCol, Duration revDuration, Duration fwdDuration, String weightCol) -
ofTime
-
ofTime
public static RollingWAvgSpec ofTime(String timestampCol, long revDuration, long fwdDuration, String weightCol) -
of
-
of
public static RollingWAvgSpec of(WindowScale revWindowScale, WindowScale fwdWindowScale, String weightCol) -
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
-
weightColumnApplicableTo
-
walk
-