public enum AvroRecordType extends Enum<AvroRecordType>
| Enum Constant and Description |
|---|
GENERIC_RECORD
Generic record type.
|
SPECIFIC_RECORD
Specific record type.
|
UNKNOWN
Unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static AvroRecordType |
fromName(String name)
Returns data format associated with the given name.
|
String |
getName()
Returns the name for this Data Format.
|
int |
getValue()
Returns the value for this Data Format.
|
static AvroRecordType |
valueOf(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.
|
public static final AvroRecordType UNKNOWN
public static final AvroRecordType SPECIFIC_RECORD
public static final AvroRecordType GENERIC_RECORD
public static AvroRecordType[] values()
for (AvroRecordType c : AvroRecordType.values()) System.out.println(c);
public static AvroRecordType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public int getValue()
public static AvroRecordType fromName(String name)
name - Name of the data format.Copyright © 2024. All rights reserved.