Class AbstractTimeType

java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractTimeType
All Implemented Interfaces:
Type
Direct Known Subclasses:
ConnectTimeType, MicroTimeType, NanoTimeType, TimeType, ZonedTimeType

public abstract class AbstractTimeType extends AbstractType
An abstract temporal implementation of Type for TIME based columns.
Author:
Chris Cranford
  • Constructor Details

    • AbstractTimeType

      public AbstractTimeType()
  • 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
    • getTimePrecision

      protected int getTimePrecision(org.apache.kafka.connect.data.Schema schema)