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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intMethods inherited from class com.linkedin.venice.hadoop.input.kafka.KafkaInputKeyComparator
compare, compareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
KafkaInputValueGroupingComparator
public KafkaInputValueGroupingComparator()
-
-
Method Details
-
compare
- Overrides:
comparein classKafkaInputKeyComparator
-