Package io.debezium.relational
Interface ValueConverterProvider
- All Known Implementing Classes:
JdbcValueConverters
public interface ValueConverterProvider
A provider of
ValueConverter
functions and the SchemaBuilder
used to describe them.- Author:
- Randall Hauch
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
schemaBuilder
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
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
-