Enum Class BadDataBehavior

java.lang.Object
java.lang.Enum<BadDataBehavior>
io.deephaven.api.updateby.BadDataBehavior
All Implemented Interfaces:
Serializable, Comparable<BadDataBehavior>, java.lang.constant.Constable

public enum BadDataBehavior extends Enum<BadDataBehavior>
Directives for how to handle null and NaN values while processing EMAs
  • Enum Constant Details

    • THROW

      public static final BadDataBehavior THROW
      Throw an exception and abort processing when bad data is encountered
    • RESET

      public static final BadDataBehavior RESET
      Reset the state for the bucket to null when invalid data is encountered
    • SKIP

      public static final BadDataBehavior SKIP
      Skip and do not process the invalid data without changing state
    • POISON

      public static final BadDataBehavior POISON
      Allow the bad data to poison the result. This is only valid for use with NaN
  • Method Details

    • values

      public static BadDataBehavior[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BadDataBehavior valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null