Class VeniceSparkPartitioner
- java.lang.Object
-
- org.apache.spark.Partitioner
-
- com.linkedin.venice.spark.datawriter.partition.VeniceSparkPartitioner
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Serializable
public class VeniceSparkPartitioner extends org.apache.spark.Partitioner
VeniceSparkPartitioner
will use the exact same partitioner as the one that will be used insideVeniceWriter
(e.g.DefaultVenicePartitioner
) to make sure the messages inside each partition belong to the same PubSub topic partition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VeniceSparkPartitioner(org.apache.spark.broadcast.Broadcast<java.util.Properties> broadcastProperties, int numPartitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPartition(java.lang.Object key)
int
numPartitions()
-