public interface Converter
Modifier and Type | Method and Description |
---|---|
void |
configure(java.util.Map<java.lang.String,?> configs,
boolean isKey)
Configure this class.
|
byte[] |
fromConnectData(java.lang.String topic,
Schema schema,
java.lang.Object value)
Convert a Kafka Connect data object to a native object for serialization.
|
SchemaAndValue |
toConnectData(java.lang.String topic,
byte[] value)
Convert a native object to a Kafka Connect data object.
|
void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
configs
- configs in key/value pairsisKey
- whether is for key or valuebyte[] fromConnectData(java.lang.String topic, Schema schema, java.lang.Object value)
topic
- the topic associated with the dataschema
- the schema for the valuevalue
- the value to convertSchemaAndValue toConnectData(java.lang.String topic, byte[] value)
topic
- the topic associated with the datavalue
- the value to convertSchema
and the converted value