Class PartitionSorter
java.lang.Object
com.linkedin.venice.spark.datawriter.partition.PartitionSorter
- All Implemented Interfaces:
- Serializable,- Comparator<org.apache.spark.sql.Row>
public class PartitionSorter
extends Object
implements Comparator<org.apache.spark.sql.Row>, Serializable
Sort the rows based on the key and value in ascending order using unsigned byte comparison.
 
- The sorting on the key is the same as what RocksDB and Shuffle-Sort in MapReduce use.
- The sorting on the value is to make SparkPartitionWriterbe able to optimize the de-duping of values.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcompare(org.apache.spark.sql.Row r1, org.apache.spark.sql.Row r2) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
PartitionSorterpublic PartitionSorter()
 
- 
- 
Method Details- 
comparepublic int compare(org.apache.spark.sql.Row r1, org.apache.spark.sql.Row r2) - Specified by:
- comparein interface- Comparator<org.apache.spark.sql.Row>
 
 
-