
io.kestra.plugin.kafka.serdes.KafkaAvroSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-kafka Show documentation
Show all versions of plugin-kafka Show documentation
Leverage Apache Kafka messaging in Kestra data workflows.
package io.kestra.plugin.kafka.serdes;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericDatumWriter;
import org.apache.avro.io.DatumWriter;
public class KafkaAvroSerializer extends io.confluent.kafka.serializers.KafkaAvroSerializer {
@Override
protected DatumWriter> getDatumWriter(Object value, Schema schema) {
return new GenericDatumWriter<>(schema, GenericData.get());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy