Enum AvroRecordType
- All Implemented Interfaces:
Serializable,Comparable<AvroRecordType>,java.lang.constant.Constable
Defines a set of supported Data Formats
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeneric record type.Specific record type.Unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic AvroRecordTypeReturns data format associated with the given name.getName()Returns the name for this Data Format.intgetValue()Returns the value for this Data Format.static AvroRecordTypeReturns the enum constant of this type with the specified name.static AvroRecordType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown. -
SPECIFIC_RECORD
Specific record type. -
GENERIC_RECORD
Generic record type.
-
-
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
-
getName
Returns the name for this Data Format.- Returns:
- Returns the name for this Data Format.
-
getValue
public int getValue()Returns the value for this Data Format.- Returns:
- Returns the value for this Data Format.
-
fromName
Returns data format associated with the given name.- Parameters:
name- Name of the data format.- Returns:
- Returns data format associated with the given name.
-