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