Class MapToHstoreType

All Implemented Interfaces:
Type

class MapToHstoreType extends AbstractConnectMapType
An implementation of Type for MAP schema types that get mapped to a PostgreSQL HSTORE column type.
Author:
Chris Cranford
  • Field Details

  • Constructor Details

    • MapToHstoreType

      MapToHstoreType()
  • Method Details

    • getQueryBinding

      public String getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema)
      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
      Returns:
      query parameter argument binding SQL fragment
    • 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
    • bind

      public void bind(org.hibernate.query.Query<?> query, int index, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Binds the value to the query.
      Specified by:
      bind in interface Type
      Overrides:
      bind in class AbstractType
      Parameters:
      query - hibernate query, is never null
      index - parameter index to bind
      schema - field schema, never null
      value - value to be bound, may be null