public static enum Schema.Type extends Enum<Schema.Type>
Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
BYTES |
FLOAT32 |
FLOAT64 |
INT16 |
INT32 |
INT64 |
INT8 |
MAP |
STRING |
STRUCT |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isPrimitive() |
static Schema.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Schema.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Schema.Type INT8
public static final Schema.Type INT16
public static final Schema.Type INT32
public static final Schema.Type INT64
public static final Schema.Type FLOAT32
public static final Schema.Type FLOAT64
public static final Schema.Type BOOLEAN
public static final Schema.Type STRING
public static final Schema.Type BYTES
public static final Schema.Type ARRAY
public static final Schema.Type MAP
public static final Schema.Type STRUCT
public static Schema.Type[] values()
for (Schema.Type c : Schema.Type.values()) System.out.println(c);
public static Schema.Type 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 boolean isPrimitive()