Enum Class ErrorPolicy.Mode
- All Implemented Interfaces:
Serializable,Comparable<ErrorPolicy.Mode>,Constable
- Enclosing class:
ErrorPolicy
Determines what happens to a row (or field) that fails to parse.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbort immediately — equivalent to SparkFAILFAST.Null-fill unparseable fields, keep the row — equivalent to SparkPERMISSIVE.Drop the entire row — equivalent to SparkDROPMALFORMED, DuckDBignore_errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorPolicy.ModeCase-insensitive parse; accepts underscore form (skip_row).static ErrorPolicy.ModeReturns the enum constant of this class with the specified name.static ErrorPolicy.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAIL_FAST
Abort immediately — equivalent to SparkFAILFAST. -
SKIP_ROW
Drop the entire row — equivalent to SparkDROPMALFORMED, DuckDBignore_errors. -
NULL_FIELD
Null-fill unparseable fields, keep the row — equivalent to SparkPERMISSIVE.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
parse
Case-insensitive parse; accepts underscore form (skip_row). Returnsnullfor null/empty input.
-