Package io.debezium.relational
Interface ValueConverterProvider
-
- All Known Implementing Classes:
JdbcValueConverters
public interface ValueConverterProvider
A provider ofValueConverter
functions and theSchemaBuilder
used to describe them.- Author:
- Randall Hauch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueConverter
converter(Column columnDefinition, org.apache.kafka.connect.data.Field fieldDefn)
Returns aValueConverter
that can be used to convert the JDBC values corresponding to the given JDBC temporal type into literal values described by theschema
.org.apache.kafka.connect.data.SchemaBuilder
schemaBuilder(Column columnDefinition)
Returns aSchemaBuilder
for aSchema
describing literal values of the given JDBC type.
-
-
-
Method Detail
-
schemaBuilder
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder(Column columnDefinition)
Returns aSchemaBuilder
for aSchema
describing literal values of the given JDBC type.- Parameters:
columnDefinition
- the column definition; never null- Returns:
- the schema builder; null if the column's type information is unknown
-
converter
ValueConverter converter(Column columnDefinition, org.apache.kafka.connect.data.Field fieldDefn)
Returns aValueConverter
that can be used to convert the JDBC values corresponding to the given JDBC temporal type into literal values described by theschema
.This method is only called when
schemaBuilder(Column)
returns a non-nullSchemaBuilder
for the same column definition.- Parameters:
columnDefinition
- the column definition; never nullfieldDefn
- the definition for the field in a Kafka ConnectSchema
describing the output of the function; never null- Returns:
- the value converter; never null
-
-