Package org.apache.kafka.connect.data
Enum Class Schema.Type
- All Implemented Interfaces:
Serializable
,Comparable<Schema.Type>
,Constable
- Enclosing interface:
- Schema
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 ConstantDescriptionAn ordered sequence of elements, each of which shares the same type.Boolean value (true or false)Sequence of unsigned 8-bit bytes32-bit IEEE 754 floating point number64-bit IEEE 754 floating point number16-bit signed integer Note that if you have an unsigned 16-bit data source,INT32
will be required to safely capture all valid values32-bit signed integer Note that if you have an unsigned 32-bit data source,INT64
will be required to safely capture all valid values8-bit signed integer Note that if you have an unsigned 8-bit data source,INT16
will be required to safely capture all valid valuesA mapping from keys to values.Character string that supports all Unicode characters.A structured record containing a set of named fields, each field using a fixed, independentSchema
. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
static Schema.Type
Returns the enum constant of this class with the specified name.static Schema.Type[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
isPrimitive
public boolean isPrimitive()
-