Package org.apache.flink.types.parser
Enum FieldParser.ParseErrorState
- java.lang.Object
-
- java.lang.Enum<FieldParser.ParseErrorState>
-
- org.apache.flink.types.parser.FieldParser.ParseErrorState
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldParser.ParseErrorState>
- Enclosing class:
- FieldParser<T>
public static enum FieldParser.ParseErrorState extends Enum<FieldParser.ParseErrorState>
An enumeration of different types of errors that may occur.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN_INVALID
Invalid Boolean value *EMPTY_COLUMN
The column is empty.NONE
No error occurred.NUMERIC_VALUE_FORMAT_ERROR
The field was not in a correct format for the numeric type.NUMERIC_VALUE_ILLEGAL_CHARACTER
An illegal character was encountered while parsing a numeric type.NUMERIC_VALUE_ORPHAN_SIGN
A stand-alone sign was encountered while parsing a numeric type.NUMERIC_VALUE_OVERFLOW_UNDERFLOW
The domain of the numeric type is not large enough to hold the parsed value.UNQUOTED_CHARS_AFTER_QUOTED_STRING
The parser found characters between the end of the quoted string and the delimiter.UNTERMINATED_QUOTED_STRING
A quoted string was not terminated until the line end.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldParser.ParseErrorState
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldParser.ParseErrorState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final FieldParser.ParseErrorState NONE
No error occurred.
-
NUMERIC_VALUE_OVERFLOW_UNDERFLOW
public static final FieldParser.ParseErrorState NUMERIC_VALUE_OVERFLOW_UNDERFLOW
The domain of the numeric type is not large enough to hold the parsed value.
-
NUMERIC_VALUE_ORPHAN_SIGN
public static final FieldParser.ParseErrorState NUMERIC_VALUE_ORPHAN_SIGN
A stand-alone sign was encountered while parsing a numeric type.
-
NUMERIC_VALUE_ILLEGAL_CHARACTER
public static final FieldParser.ParseErrorState NUMERIC_VALUE_ILLEGAL_CHARACTER
An illegal character was encountered while parsing a numeric type.
-
NUMERIC_VALUE_FORMAT_ERROR
public static final FieldParser.ParseErrorState NUMERIC_VALUE_FORMAT_ERROR
The field was not in a correct format for the numeric type.
-
UNTERMINATED_QUOTED_STRING
public static final FieldParser.ParseErrorState UNTERMINATED_QUOTED_STRING
A quoted string was not terminated until the line end.
-
UNQUOTED_CHARS_AFTER_QUOTED_STRING
public static final FieldParser.ParseErrorState UNQUOTED_CHARS_AFTER_QUOTED_STRING
The parser found characters between the end of the quoted string and the delimiter.
-
EMPTY_COLUMN
public static final FieldParser.ParseErrorState EMPTY_COLUMN
The column is empty.
-
BOOLEAN_INVALID
public static final FieldParser.ParseErrorState BOOLEAN_INVALID
Invalid Boolean value *
-
-
Method Detail
-
values
public static FieldParser.ParseErrorState[] 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 (FieldParser.ParseErrorState c : FieldParser.ParseErrorState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldParser.ParseErrorState 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
-
-