Package io.debezium.relational.mapping
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 theTYPE_NAME_PARAMETER_KEYandTYPE_LENGTH_PARAMETER_KEYschema parameter keys.- Author:
- Orr Ganani, Gunnar Morling
-
-
Field Summary
Fields Modifier and Type Field Description private static StringTYPE_LENGTH_PARAMETER_KEYprivate static StringTYPE_NAME_PARAMETER_KEYprivate static StringTYPE_SCALE_PARAMETER_KEY
-
Constructor Summary
Constructors Constructor Description PropagateSourceTypeToSchemaParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalterFieldSchema(Column column, org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)Optionally annotate the schema with properties to better capture the mapping behavior.ValueConvertercreate(Column column)Create for the given column a function that maps values.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.relational.mapping.ColumnMapper
initialize
-
-
-
-
Field Detail
-
TYPE_NAME_PARAMETER_KEY
private static final String TYPE_NAME_PARAMETER_KEY
- See Also:
- Constant Field Values
-
TYPE_LENGTH_PARAMETER_KEY
private static final String TYPE_LENGTH_PARAMETER_KEY
- See Also:
- Constant Field Values
-
TYPE_SCALE_PARAMETER_KEY
private static final String TYPE_SCALE_PARAMETER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public ValueConverter create(Column column)
Description copied from interface:ColumnMapperCreate for the given column a function that maps values.- Specified by:
createin interfaceColumnMapper- 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:ColumnMapperOptionally annotate the schema with properties to better capture the mapping behavior.- Specified by:
alterFieldSchemain interfaceColumnMapper- Parameters:
column- the column definition; never nullschemaBuilder- the builder for theField's schema; never null
-
-