Class AbstractTimeType

All Implemented Interfaces:
Type
Direct Known Subclasses:
AbstractDebeziumTimeType, AbstractDebeziumTimeType, ConnectTimeType, ConnectTimeType, ConnectTimeType, ZonedTimeType, ZonedTimeType, ZonedTimeType

public abstract class AbstractTimeType extends AbstractTemporalType
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)