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.BuilderbigValueContext(MathContext bigValueContext)EmaControlbuild()Construct anEmaControlfrom this builder.EmaControl.BuilderonNanValue(BadDataBehavior behavior)Set the behavior for when NaN samples are encountered.EmaControl.BuilderonNegativeDeltaTime(BadDataBehavior behavior)Set the behavior for when negative sample-to-sample times are encountered.EmaControl.BuilderonNullTime(BadDataBehavior behavior)Set the behavior for when null timestamps are encountered.EmaControl.BuilderonNullValue(BadDataBehavior behavior)Set the behavior for when null samples are encountered.EmaControl.BuilderonZeroDeltaTime(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 theMathContextto use for processingBigDecimalandBigIntegertypes. Defaults toMathContext.DECIMAL128.- Parameters:
bigValueContext- the desired behavior- Returns:
- this builder
-
build
Construct anEmaControlfrom this builder.- Returns:
-