Package org.apache.avro
Enum Resolver.ErrorAction.ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<Resolver.ErrorAction.ErrorType>
- Enclosing class:
Resolver.ErrorAction
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse when Schema types don't match and can't be converted.Use when matching two records and the reader has a field with no default value and that field is missing in the writer..Use when Schema types match but, in the case of record, enum, or fixed, the names don't match.Use when matching a reader's union against a non-union and can't find a branch that matches.Use when two fixed types match and their names match by their sizes don't. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static Resolver.ErrorAction.ErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INCOMPATIBLE_SCHEMA_TYPES
Use when Schema types don't match and can't be converted. For example, resolving "int" and "enum". -
NAMES_DONT_MATCH
Use when Schema types match but, in the case of record, enum, or fixed, the names don't match. -
SIZES_DONT_MATCH
Use when two fixed types match and their names match by their sizes don't. -
MISSING_REQUIRED_FIELD
Use when matching two records and the reader has a field with no default value and that field is missing in the writer.. -
NO_MATCHING_BRANCH
Use when matching a reader's union against a non-union and can't find a branch that matches.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-