public interface ValueConverterProvider
ValueConverter functions and the SchemaBuilder used to describe them.| Modifier and Type | Method and Description |
|---|---|
ValueConverter |
converter(Column columnDefinition,
org.apache.kafka.connect.data.Field fieldDefn)
Returns a
ValueConverter that can be used to convert the JDBC values corresponding to the given JDBC temporal type
into literal values described by the schema. |
org.apache.kafka.connect.data.SchemaBuilder |
schemaBuilder(Column columnDefinition)
Returns a
SchemaBuilder for a Schema describing literal values of the given JDBC type. |
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder(Column columnDefinition)
SchemaBuilder for a Schema describing literal values of the given JDBC type.columnDefinition - the column definition; never nullValueConverter converter(Column columnDefinition, org.apache.kafka.connect.data.Field fieldDefn)
ValueConverter that can be used to convert the JDBC values corresponding to the given JDBC temporal type
into literal values described by the schema.
This method is only called when schemaBuilder(Column) returns a non-null SchemaBuilder for the same column
definition.
columnDefinition - the column definition; never nullfieldDefn - the definition for the field in a Kafka Connect Schema describing the output of the function;
never nullCopyright © 2020 JBoss by Red Hat. All rights reserved.