Class KafkaInputMRPartitioner

java.lang.Object
com.linkedin.venice.hadoop.mapreduce.datawriter.partition.VeniceMRPartitioner
com.linkedin.venice.hadoop.input.kafka.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 Details

    • KafkaInputMRPartitioner

      public KafkaInputMRPartitioner()
  • Method Details

    • getPartition

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