public static enum Schema.Type extends Enum<Schema.Type>
Enum Constant and Description |
---|
ARRAY
An ordered sequence of elements, each of which shares the same type.
|
BOOLEAN
Boolean value (true or false)
|
BYTES
Sequence of unsigned 8-bit bytes
|
FLOAT32
32-bit IEEE 754 floating point number
|
FLOAT64
64-bit IEEE 754 floating point number
|
INT16
16-bit signed integer
Note that if you have an unsigned 16-bit data source,
INT32 will be required to safely capture all valid values |
INT32
32-bit signed integer
Note that if you have an unsigned 32-bit data source,
INT64 will be required to safely capture all valid values |
INT64
|
INT8
8-bit signed integer
Note that if you have an unsigned 8-bit data source,
INT16 will be required to safely capture all valid values |
MAP
A mapping from keys to values.
|
STRING
Character string that supports all Unicode characters.
|
STRUCT
A structured record containing a set of named fields, each field using a fixed, independent
Schema . |
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
INT16
will be required to safely capture all valid valuespublic static final Schema.Type INT16
INT32
will be required to safely capture all valid valuespublic static final Schema.Type INT32
INT64
will be required to safely capture all valid valuespublic 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
Struct
.public static final Schema.Type STRUCT
Schema
.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()