Re: topic input parameter in org.apache.kafka.common.serialization.Serializer interface

2020-05-15 Thread Matthias J. Sax
It is the topic the record will be send to. Most serializers ignore this parameter. If could be used to pick a different serialization format for different topics. -Matthias On 5/15/20 2:30 AM, Pushkar Deole wrote: > Hi All, > > I am writing a Json customer serializer for our customer objects,

topic input parameter in org.apache.kafka.common.serialization.Serializer interface

2020-05-15 Thread Pushkar Deole
Hi All, I am writing a Json customer serializer for our customer objects, which need to implement the Kafka Serializer interface. I am wondering what the input parameter "topic" is in the Serializer.serialize method. I don't think it is the topic on which data is to be published. Please correct me