Enum AvroRecordType
- java.lang.Object
-
- java.lang.Enum<AvroRecordType>
-
- com.amazonaws.services.schemaregistry.utils.AvroRecordType
-
- All Implemented Interfaces:
Serializable,Comparable<AvroRecordType>
public enum AvroRecordType extends Enum<AvroRecordType>
Defines a set of supported Data Formats
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENERIC_RECORDGeneric record type.SPECIFIC_RECORDSpecific record type.UNKNOWNUnknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvroRecordTypefromName(String name)Returns data format associated with the given name.StringgetName()Returns the name for this Data Format.intgetValue()Returns the value for this Data Format.static AvroRecordTypevalueOf(String name)Returns 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 Detail
-
UNKNOWN
public static final AvroRecordType UNKNOWN
Unknown.
-
SPECIFIC_RECORD
public static final AvroRecordType SPECIFIC_RECORD
Specific record type.
-
GENERIC_RECORD
public static final AvroRecordType GENERIC_RECORD
Generic record type.
-
-
Method Detail
-
values
public static AvroRecordType[] 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 (AvroRecordType c : AvroRecordType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvroRecordType 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
-
getName
public String 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
public static AvroRecordType fromName(String name)
Returns data format associated with the given name.- Parameters:
name- Name of the data format.- Returns:
- Returns data format associated with the given name.
-
-