Class OptimizedKafkaValueSerializer

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

public class OptimizedKafkaValueSerializer extends KafkaValueSerializer
This class is to reuse the original array for put payload of each message to reduce the unnecessary byte array allocation.
  • Constructor Details

    • OptimizedKafkaValueSerializer

      public OptimizedKafkaValueSerializer()
    • OptimizedKafkaValueSerializer

      public OptimizedKafkaValueSerializer(BiConsumer<Integer,org.apache.avro.Schema> newSchemaEncountered)
  • Method Details