Class BytesType

All Implemented Interfaces:
Type

class BytesType extends AbstractBytesType
An implementation of Type for BYTES column types.
Author:
Chris Cranford
  • Field Details

    • INSTANCE

      public static final BytesType INSTANCE
  • Constructor Details

    • BytesType

      BytesType()
  • Method Details

    • 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
    • getDefaultValueBinding

      public String getDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Resolve the default value clause value.
      Specified by:
      getDefaultValueBinding in interface Type
      Overrides:
      getDefaultValueBinding in class AbstractType
      Parameters:
      dialect - dialect instance, never null
      schema - field schema, never null
      value - the default value, should not be null
      Returns:
      the formatted default value for the SQL statement as a string