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 aValueConverterthat 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.SchemaBuilderschemaBuilder(Column columnDefinition) Returns aSchemaBuilderfor aSchemadescribing literal values of the given JDBC type.
-
Method Details
-
schemaBuilder
Returns aSchemaBuilderfor aSchemadescribing 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 aValueConverterthat 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-nullSchemaBuilderfor the same column definition.- Parameters:
columnDefinition- the column definition; never nullfieldDefn- the definition for the field in a Kafka ConnectSchemadescribing the output of the function; never null- Returns:
- the value converter; never null
-