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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kafka.connect.data.SchemaBuilderReturns aSchemaBuilderfor an enumeration.static org.apache.kafka.connect.data.SchemaBuilderReturns aSchemaBuilderfor an enumeration.static org.apache.kafka.connect.data.SchemaReturns aSchemaBuilderfor an enumeration, with all other default Schema settings.static org.apache.kafka.connect.data.SchemaReturns aSchemaBuilderfor 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 aSchemaBuilderfor 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 aSchemaBuilderfor 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 aSchemaBuilderfor 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 aSchemaBuilderfor an enumeration, with all other default Schema settings.- Parameters:
allowedValues- the list of allowed values; may not be null- Returns:
- the schema
- See Also:
-