- java.lang.Object
-
- java.lang.Enum<ParseErrorAction>
-
- com.pervasive.datarush.operators.io.ParseErrorAction
-
- All Implemented Interfaces:
Serializable
,Comparable<ParseErrorAction>
public enum ParseErrorAction extends Enum<ParseErrorAction>
Describes the possible actions for handling record parsing errors.- See Also:
ParsingOptions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCARD
Discard the record.ERROR
Throw a runtime exception causing processing to abort immediately.IGNORE
Ignore the error and continue to process the record.WARN
Log a warning message, but continue to process the record in error.WARN_AND_DISCARD
Log a warning message and discard the record.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParseErrorAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParseErrorAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ParseErrorAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParseErrorAction c : ParseErrorAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParseErrorAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-