Class KafkaInputMRPartitioner

  • All Implemented Interfaces:
    org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.BytesWritable>

    public class KafkaInputMRPartitioner
    extends VeniceMRPartitioner
    This class is used for KafkaInput Repush, and it only considers the key part of the composed key (ignoring the offset).
    • Constructor Detail

      • KafkaInputMRPartitioner

        public KafkaInputMRPartitioner()
    • Method Detail

      • getPartition

        protected int getPartition​(org.apache.hadoop.io.BytesWritable key,
                                   int numPartitions)
        Overrides:
        getPartition in class VeniceMRPartitioner