Class PropagateSourceTypeToSchemaParameter

java.lang.Object
io.debezium.relational.mapping.PropagateSourceTypeToSchemaParameter
All Implemented Interfaces:
ColumnMapper

public class PropagateSourceTypeToSchemaParameter extends Object implements ColumnMapper
A column mapper that adds the TYPE_NAME_PARAMETER_KEY and TYPE_LENGTH_PARAMETER_KEY and TYPE_SCALE_PARAMETER_KEY and COLUMN_COMMENT_PARAMETER_KEY schema parameter keys.
Author:
Orr Ganani, Gunnar Morling
  • Field Details

  • Constructor Details

    • PropagateSourceTypeToSchemaParameter

      public PropagateSourceTypeToSchemaParameter()
  • Method Details

    • create

      public ValueConverter create(Column column)
      Description copied from interface: ColumnMapper
      Create for the given column a function that maps values.
      Specified by:
      create in interface ColumnMapper
      Parameters:
      column - the column description; never null
      Returns:
      the function that converts the value; may be null
    • alterFieldSchema

      public void alterFieldSchema(Column column, org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)
      Description copied from interface: ColumnMapper
      Optionally annotate the schema with properties to better capture the mapping behavior.
      Specified by:
      alterFieldSchema in interface ColumnMapper
      Parameters:
      column - the column definition; never null
      schemaBuilder - the builder for the Field's schema; never null