Class EmaControl.Builder
java.lang.Object
com.illumon.iris.db.v2.updateby.ema.EmaControl.Builder
- Enclosing class:
- EmaControl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbigValueContext
(MathContext bigValueContext) build()
Construct anEmaControl
from this builder.onNanValue
(BadDataBehavior behavior) Set the behavior for when NaN samples are encountered.onNegativeDeltaTime
(BadDataBehavior behavior) Set the behavior for when negative sample-to-sample times are encountered.onNullTime
(BadDataBehavior behavior) Set the behavior for when null timestamps are encountered.onNullValue
(BadDataBehavior behavior) Set the behavior for when null samples are encountered.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:
-