Class KafkaValueSerializer

All Implemented Interfaces:
VeniceKafkaSerializer<KafkaMessageEnvelope>, Closeable, AutoCloseable, org.apache.kafka.common.serialization.Deserializer<KafkaMessageEnvelope>, org.apache.kafka.common.serialization.Serializer<KafkaMessageEnvelope>
Direct Known Subclasses:
OptimizedKafkaValueSerializer

public class KafkaValueSerializer extends InternalAvroSpecificSerializer<KafkaMessageEnvelope>
Serializer for the Avro-based kafka protocol defined in: KafkaMessageEnvelope This class needs to be defined explicitly, rather than just instantiating a InternalAvroSpecificSerializer because it is used as a config passed to the Kafka producer.
  • Constructor Details

    • KafkaValueSerializer

      public KafkaValueSerializer()
    • KafkaValueSerializer

      public KafkaValueSerializer(BiConsumer<Integer,org.apache.avro.Schema> newSchemaEncountered)