public static enum Schema.Type extends Enum<Schema.Type>
| Enum Constant and Description |
|---|
ARRAYAn ordered sequence of elements, each of which shares the same type. |
BOOLEANBoolean value (true or false) |
BYTESSequence of unsigned 8-bit bytes |
FLOAT3232-bit IEEE 754 floating point number |
FLOAT6464-bit IEEE 754 floating point number |
INT1616-bit signed integer |
INT3232-bit signed integer |
INT6464-bit signed integer |
INT88-bit signed integer |
MAPA mapping from keys to values. |
STRINGCharacter string that supports all Unicode characters. |
STRUCTA 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
Note that if you have an unsigned 8-bit data source, INT16 will be required to safely capture all valid values
public static final Schema.Type INT16
Note that if you have an unsigned 16-bit data source, INT32 will be required to safely capture all valid values
public static final Schema.Type INT32
Note that if you have an unsigned 32-bit data source, INT64 will be required to safely capture all valid values
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
Note that this does not imply any specific encoding (e.g. UTF-8) as this is an in-memory representation.
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()