Class ColumnMappers

java.lang.Object
io.debezium.relational.mapping.ColumnMappers

@Immutable public class ColumnMappers extends Object
A set of ColumnMapper objects for columns.
Author:
Randall Hauch
  • Field Details

  • Constructor Details

  • Method Details

    • build

      public static ColumnMappers.Builder build()
      Obtain a new builder for a table selection predicate.
      Returns:
      the builder; never null
    • create

      public static ColumnMappers create(RelationalDatabaseConnectorConfig connectorConfig)
      Builds a new ColumnMappers instance based on the given configuration.
    • mappingConverterFor

      public ValueConverter mappingConverterFor(Table table, Column column)
      Get the value mapping function for the given column.
      Parameters:
      table - the table to which the column belongs; may not be null
      column - the column; may not be null
      Returns:
      the mapping function, or null if there is no mapping function
    • mappingConverterFor

      public ValueConverter mappingConverterFor(TableId tableId, Column column)
      Get the value mapping function for the given column.
      Parameters:
      tableId - the identifier of the table to which the column belongs; may not be null
      column - the column; may not be null
      Returns:
      the mapping function, or null if there is no mapping function
    • mapperFor

      public ColumnMapper mapperFor(TableId tableId, Column column)
      Get the value mapping function for the given column.
      Parameters:
      tableId - the identifier of the table to which the column belongs; may not be null
      column - the column; may not be null
      Returns:
      the mapping function, or null if there is no mapping function
    • instantiateMapper

      protected static ColumnMapper instantiateMapper(Class<ColumnMapper> clazz, Configuration config)