Class EmaControl.Builder
java.lang.Object
com.illumon.iris.db.v2.updateby.ema.EmaControl.Builder
- Enclosing class:
- EmaControl
public static class EmaControl.Builder extends Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description EmaControl.Builder
bigValueContext(MathContext bigValueContext)
EmaControl
build()
Construct anEmaControl
from this builder.EmaControl.Builder
onNanValue(BadDataBehavior behavior)
Set the behavior for when NaN samples are encountered.EmaControl.Builder
onNegativeDeltaTime(BadDataBehavior behavior)
Set the behavior for when negative sample-to-sample times are encountered.EmaControl.Builder
onNullTime(BadDataBehavior behavior)
Set the behavior for when null timestamps are encountered.EmaControl.Builder
onNullValue(BadDataBehavior behavior)
Set the behavior for when null samples are encountered.EmaControl.Builder
onZeroDeltaTime(BadDataBehavior behavior)
Set the behavior for when zero sample-to-sample times are encountered.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onNullValue
Set the behavior for when null samples are encountered. Defaults toBadDataBehavior.Skip
.- Parameters:
behavior
- the desired behavior- Returns:
- this builder
-
onNanValue
Set the behavior for when NaN samples are encountered. Defaults toBadDataBehavior.Skip
.- Parameters:
behavior
- the desired behavior- Returns:
- this builder
-
onNullTime
Set the behavior for when null timestamps are encountered. Defaults toBadDataBehavior.Skip
.- Parameters:
behavior
- the desired behavior- Returns:
- this builder
-
onZeroDeltaTime
Set the behavior for when zero sample-to-sample times are encountered. Defaults toBadDataBehavior.Skip
.- Parameters:
behavior
- the desired behavior- Returns:
- this builder
-
onNegativeDeltaTime
Set the behavior for when negative sample-to-sample times are encountered. Defaults toBadDataBehavior.Throw
.- Parameters:
behavior
- the desired behavior- Returns:
- this builder
-
bigValueContext
Set theMathContext
to use for processingBigDecimal
andBigInteger
types. Defaults toMathContext.DECIMAL128
.- Parameters:
bigValueContext
- the desired behavior- Returns:
- this builder
-
build
Construct anEmaControl
from this builder.- Returns:
-