Class KafkaInputValueGroupingComparator
- java.lang.Object
-
- com.linkedin.venice.hadoop.input.kafka.KafkaInputKeyComparator
-
- com.linkedin.venice.hadoop.input.kafka.KafkaInputValueGroupingComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<org.apache.hadoop.io.BytesWritable>
,org.apache.hadoop.io.RawComparator<org.apache.hadoop.io.BytesWritable>
public class KafkaInputValueGroupingComparator extends KafkaInputKeyComparator
This class together withKafkaInputKeyComparator
supports secondary sorting of KafkaInput Repush. This class is used to group the entries with same key by ignoring the offset part.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KafkaInputValueGroupingComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compare(KafkaInputMapperKey k1, KafkaInputMapperKey k2)
-
Methods inherited from class com.linkedin.venice.hadoop.input.kafka.KafkaInputKeyComparator
compare, compare
-
-
-
-
Method Detail
-
compare
protected int compare(KafkaInputMapperKey k1, KafkaInputMapperKey k2)
- Overrides:
compare
in classKafkaInputKeyComparator
-
-