This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.kafka.common.config.ConfigDef; | |
import org.apache.kafka.connect.connector.ConnectRecord; | |
import org.apache.kafka.connect.data.Field; | |
import org.apache.kafka.connect.data.Schema; | |
import org.apache.kafka.connect.data.SchemaBuilder; | |
import org.apache.kafka.connect.data.Struct; | |
import org.apache.kafka.connect.transforms.Transformation; | |
import org.apache.kafka.connect.transforms.util.SchemaUtil; | |
import org.apache.kafka.connect.transforms.util.SimpleConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.zefr.connect.transforms; | |
import org.apache.kafka.common.config.ConfigDef; | |
import org.apache.kafka.connect.connector.ConnectRecord; | |
import org.apache.kafka.connect.data.Field; | |
import org.apache.kafka.connect.data.Schema; | |
import org.apache.kafka.connect.data.SchemaBuilder; | |
import org.apache.kafka.connect.data.Struct; | |
import org.apache.kafka.connect.transforms.Transformation; | |
import org.apache.kafka.connect.transforms.util.SchemaUtil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.kafka.common.serialization.Deserializer | |
import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient | |
import io.confluent.kafka.serializers.KafkaAvroDeserializer | |
class StringAvroDeserializer : Deserializer<String> { | |
private val inner: KafkaAvroDeserializer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig | |
import org.apache.kafka.common.serialization.Serializer | |
import java.util.HashMap | |
import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient | |
import io.confluent.kafka.serializers.KafkaAvroSerializer | |
class StringAvroSerializer<T> : Serializer<T> { |