Class EmaSpec
java.lang.Object
com.illumon.iris.db.v2.updateby.spec.EmaSpec
- All Implemented Interfaces:
UpdateBySpec
public class EmaSpec extends Object implements UpdateBySpec
A
UpdateBySpec for performing an Exponential Moving Average across the specified columns-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.updateby.spec.UpdateBySpec
UpdateBySpec.Visitor -
Method Summary
Modifier and Type Method Description booleanapplicableTo(Class<?> inputType)Determine if this spec can be applied to the specified typeStringdescribe()Get a description of the operation requested.EmaControlgetControl()longgetTimeScaleUnits()StringgetTimestampCol()static EmaSpecofTicks(EmaControl control, long tickWindow)static EmaSpecofTime(EmaControl control, String timestampCol, long timeScaleNanos)<V extends UpdateBySpec.Visitor>
Vwalk(V v)
-
Method Details
-
ofTime
public static EmaSpec ofTime(@NotNull EmaControl control, @NotNull String timestampCol, long timeScaleNanos) -
ofTicks
-
getTimestampCol
-
getTimeScaleUnits
public long getTimeScaleUnits() -
getControl
-
describe
Description copied from interface:UpdateBySpecGet a description of the operation requested.- Specified by:
describein interfaceUpdateBySpec- Returns:
- a description of the operation
-
applicableTo
Description copied from interface:UpdateBySpecDetermine if this spec can be applied to the specified type- Specified by:
applicableToin interfaceUpdateBySpec- Returns:
- true if this spec can be applied to the specified input type
-
walk
- Specified by:
walkin interfaceUpdateBySpec
-