Class KafkaInputDictTrainer


  • public class KafkaInputDictTrainer
    extends java.lang.Object
    Zstd dict trainer for Kafka Repush. This class will try to read a few records from every partition as samples of dict trainer.
    • Constructor Detail

      • KafkaInputDictTrainer

        protected KafkaInputDictTrainer​(KafkaInputFormat inputFormat,
                                        java.util.Optional<com.github.luben.zstd.ZstdDictTrainer> trainerSupplier,
                                        KafkaInputDictTrainer.Param param,
                                        com.linkedin.venice.hadoop.input.kafka.KafkaInputDictTrainer.CompressorBuilder compressorBuilder)
    • Method Detail

      • trainDict

        public byte[] trainDict()