Package io.debezium.data
Class Enum
java.lang.Object
io.debezium.data.Enum
A semantic type for an enumeration, where the string values are one of the enumeration's values.
- Author:
- Randall Hauch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kafka.connect.data.SchemaBuilder
Returns aSchemaBuilder
for an enumeration.static org.apache.kafka.connect.data.SchemaBuilder
Returns aSchemaBuilder
for an enumeration.static org.apache.kafka.connect.data.Schema
Returns aSchemaBuilder
for an enumeration, with all other default Schema settings.static org.apache.kafka.connect.data.Schema
Returns aSchemaBuilder
for an enumeration, with all other default Schema settings.
-
Field Details
-
LOGICAL_NAME
- See Also:
-
VALUES_FIELD
- See Also:
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION- See Also:
-
-
Constructor Details
-
Enum
public Enum()
-
-
Method Details
-
builder
Returns aSchemaBuilder
for an enumeration. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.- Parameters:
allowedValues
- the comma separated list of allowed values; may not be null- Returns:
- the schema builder
-
builder
Returns aSchemaBuilder
for an enumeration. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.- Parameters:
allowedValues
- the list of allowed values; may not be null- Returns:
- the schema builder
-
schema
Returns aSchemaBuilder
for an enumeration, with all other default Schema settings.- Parameters:
allowedValues
- the comma separated list of allowed values; may not be null- Returns:
- the schema
- See Also:
-
schema
Returns aSchemaBuilder
for an enumeration, with all other default Schema settings.- Parameters:
allowedValues
- the list of allowed values; may not be null- Returns:
- the schema
- See Also:
-