Class EmaControl
java.lang.Object
com.illumon.iris.db.v2.updateby.ema.EmaControl
public class EmaControl extends Object
Control parameters for performing EMAs with Table.updateBy(Collection, String...)
Defaults are as follows
- On null Values - Skip
- On NaN Values - Skip
- On null timestamps - Skip
- On zero delta Time - Skip
- On negative delta time - Throw Exception
- BigDecimal / BigInteger MathContext - Decimal 128
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmaControl.Builder
-
Method Summary
Modifier and Type Method Description static EmaControl.Builder
get()
MathContext
getBigValueContext()
BadDataBehavior
getOnNanValue()
Get the behavior for when NaN values are encountered.BadDataBehavior
getOnNegativeDeltaTime()
Get the behavior for when negative sample-to-sample time differences are encounteredBadDataBehavior
getOnNullTime()
Get the behavior for when null timestamps are encountered.BadDataBehavior
getOnNullValue()
Get the behavior for when null values are encountered.BadDataBehavior
getOnZeroDeltaTime()
Get the behavior for when zero sample-to-sample-time differences are encountered.String
toString()
-
Method Details
-
get
-
getOnNullValue
Get the behavior for when null values are encountered.- Returns:
- the behavior for null values.
-
getOnNanValue
Get the behavior for when NaN values are encountered.- Returns:
- the behavior for NaN values
-
getOnNullTime
Get the behavior for when null timestamps are encountered.- Returns:
- the behavior for null timestamps.
-
getOnNegativeDeltaTime
Get the behavior for when negative sample-to-sample time differences are encountered- Returns:
- the behavior for when dt is negative
-
getOnZeroDeltaTime
Get the behavior for when zero sample-to-sample-time differences are encountered.- Returns:
- the behavior for when dt is zero
-
getBigValueContext
- Returns:
- the
MathContext
-
toString
-