Enum Class ParseErrorAction

java.lang.Object
java.lang.Enum<ParseErrorAction>
com.pervasive.datarush.operators.io.ParseErrorAction
All Implemented Interfaces:
Serializable, Comparable<ParseErrorAction>, java.lang.constant.Constable

public enum ParseErrorAction extends Enum<ParseErrorAction>
Describes the possible actions for handling record parsing errors.
See Also:
  • Enum Constant Details

    • ERROR

      public static final ParseErrorAction ERROR
      Throw a runtime exception causing processing to abort immediately.
    • WARN_AND_DISCARD

      public static final ParseErrorAction WARN_AND_DISCARD
      Log a warning message and discard the record. If the error is on a field, remaining records of the field will be parsed before discarding. The record is counted towards the record warning limit.
    • WARN

      public static final ParseErrorAction WARN
      Log a warning message, but continue to process the record in error. If the error is on a field, the field will be null-valued on output. The record is counted towards the record warning limit.
    • DISCARD

      public static final ParseErrorAction DISCARD
      Discard the record. If the error is on a field, remaining records of the field will be parsed before discarding.
    • IGNORE

      public static final ParseErrorAction IGNORE
      Ignore the error and continue to process the record. If the error is on a field, the field will be null-valued on output.
  • Method Details

    • values

      public static ParseErrorAction[] 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 ParseErrorAction 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