Class GeometryType

All Implemented Interfaces:
Type
Direct Known Subclasses:
GeographyType, PointType

public class GeometryType extends AbstractGeoType
  • Field Details

  • Constructor Details

    • GeometryType

      public GeometryType()
  • Method Details

    • configure

      public void configure(JdbcSinkConnectorConfig config, DatabaseDialect dialect)
      Description copied from interface: Type
      Allows a type to perform initialization/configuration tasks based on user configs.
      Specified by:
      configure in interface Type
      Overrides:
      configure in class AbstractType
      Parameters:
      config - the JDBC sink connector's configuration, should not be null
      dialect - the database dialect, should not be null
    • getQueryBinding

      public String getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Return the SQL string to be used in DML statements for binding this type to SQL.
      Specified by:
      getQueryBinding in interface Type
      Overrides:
      getQueryBinding in class AbstractType
      Parameters:
      column - column descriptor in the table relational model, never null
      schema - field schema, never null
      value - value to be bound, may be null
      Returns:
      query parameter argument binding SQL fragment
    • 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