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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanapplicableTo(Class<?> inputType) Determine if this spec can be applied to the specified typestatic RollingWAvgSpecof(WindowScale revWindowScale, WindowScale fwdWindowScale, String weightCol) static RollingWAvgSpecof(WindowScale revWindowScale, String weightCol) static RollingWAvgSpecstatic RollingWAvgSpecstatic RollingWAvgSpecstatic RollingWAvgSpecstatic RollingWAvgSpecstatic RollingWAvgSpecfinal <T> Twalk(UpdateBySpec.Visitor<T> visitor) abstract Stringfinal booleanweightColumnApplicableTo(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:UpdateBySpecDetermine 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
-