Class EmaControl
java.lang.Object
com.illumon.iris.db.v2.updateby.ema.EmaControl
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic EmaControl.Builder
get()
Get the behavior for when NaN values are encountered.Get the behavior for when negative sample-to-sample time differences are encounteredGet the behavior for when null timestamps are encountered.Get the behavior for when null values are encountered.Get the behavior for when zero sample-to-sample-time differences are encountered.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
-