Interface ColumnMapper

    • Method Detail

      • initialize

        default void initialize​(Configuration config)
        Initialize the ColumnMapper instance based upon the connector's configuration.
        Parameters:
        config - the connector's configuration
      • create

        ValueConverter create​(Column column)
        Create for the given column a function that maps values.
        Parameters:
        column - the column description; never null
        Returns:
        the function that converts the value; may be null
      • alterFieldSchema

        default void alterFieldSchema​(Column column,
                                      org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)
        Optionally annotate the schema with properties to better capture the mapping behavior.
        Parameters:
        column - the column definition; never null
        schemaBuilder - the builder for the Field's schema; never null