Package org.apache.kafka.connect.data
Enum Schema.Type
- All Implemented Interfaces:
Serializable
,Comparable<Schema.Type>
,Constable
- Enclosing interface:
- Schema
public static enum Schema.Type extends Enum<Schema.Type>
The type of a schema. These only include the core types; logical types must be determined by checking the schema name.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant 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 bytesFLOAT32
32-bit IEEE 754 floating point numberFLOAT64
64-bit IEEE 754 floating point numberINT16
16-bit signed integer Note that if you have an unsigned 16-bit data source,INT32
will be required to safely capture all valid valuesINT32
32-bit signed integer Note that if you have an unsigned 32-bit data source,INT64
will be required to safely capture all valid valuesINT64
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 valuesMAP
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, independentSchema
. -
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
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 -
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
-
FLOAT32
32-bit IEEE 754 floating point number -
FLOAT64
64-bit IEEE 754 floating point number -
BOOLEAN
Boolean value (true or false) -
STRING
Character string that supports all Unicode characters. Note that this does not imply any specific encoding (e.g. UTF-8) as this is an in-memory representation. -
BYTES
Sequence of unsigned 8-bit bytes -
ARRAY
An ordered sequence of elements, each of which shares the same type. -
MAP
A mapping from keys to values. Both keys and values can be arbitrarily complex types, including complex types such asStruct
. -
STRUCT
A structured record containing a set of named fields, each field using a fixed, independentSchema
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isPrimitive
public boolean isPrimitive()
-