java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.dialect.mysql.EnumType
All Implemented Interfaces:
Type

class EnumType extends AbstractType
An implementation of Type for ENUM data types.
Author:
Chris Cranford
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • INSTANCE

      public static final EnumType INSTANCE
  • Constructor Details

    • EnumType

      EnumType()
  • Method Details

    • getRegistrationKeys

      public String[] getRegistrationKeys()
      Description copied from interface: Type
      Returns the names that this type will be mapped as.

      For example, when creating a custom mapping for io.debezium.data.Bits, a type could be registered using the LOGICAL_NAME of the schema if the type is to be used when a schema name is identified; otherwise it could be registered as the raw column type when column type propagation is enabled.

    • getTypeName

      public String getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key)
      Description copied from interface: Type
      Return the SQL type name for this type.
      Parameters:
      dialect - dialect instance, never null
      schema - field schema, never null
      key - whether the type resolution is for a key field
      Returns:
      the resolved type to be used in DDL statements