Class KafkaInputValueGroupingComparator
java.lang.Object
com.linkedin.venice.hadoop.input.kafka.KafkaInputKeyComparator
com.linkedin.venice.hadoop.input.kafka.KafkaInputValueGroupingComparator
- All Implemented Interfaces:
Serializable
,Comparator<org.apache.hadoop.io.BytesWritable>
,org.apache.hadoop.io.RawComparator<org.apache.hadoop.io.BytesWritable>
This class together with
KafkaInputKeyComparator
supports secondary sorting of KafkaInput Repush.
This class is used to group the entries with same key by ignoring the offset part.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Methods inherited from class com.linkedin.venice.hadoop.input.kafka.KafkaInputKeyComparator
compare, compare
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
KafkaInputValueGroupingComparator
public KafkaInputValueGroupingComparator()
-
-
Method Details
-
compare
- Overrides:
compare
in classKafkaInputKeyComparator
-