Package io.debezium.relational.mapping
Interface ColumnMapper
- All Known Implementing Classes:
MaskStrings
,PropagateSourceTypeToSchemaParameter
,TruncateStrings
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for a function used to map values of a column.
- Author:
- Randall Hauch
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
alterFieldSchema
(Column column, org.apache.kafka.connect.data.SchemaBuilder schemaBuilder) Optionally annotate the schema with properties to better capture the mapping behavior.Create for the given column a function that maps values.default void
initialize
(Configuration config) Initialize the ColumnMapper instance based upon the connector's configuration.
-
Method Details
-
initialize
Initialize the ColumnMapper instance based upon the connector's configuration.- Parameters:
config
- the connector's configuration
-
create
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 nullschemaBuilder
- the builder for theField
's schema; never null
-