Class VeniceSparkPartitioner
java.lang.Object
org.apache.spark.Partitioner
com.linkedin.venice.spark.datawriter.partition.VeniceSparkPartitioner
- All Implemented Interfaces:
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 inside
VeniceWriter (e.g. DefaultVenicePartitioner)
to make sure the messages inside each partition belong to the same PubSub topic partition.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVeniceSparkPartitioner(org.apache.spark.broadcast.Broadcast<Properties> broadcastProperties, int numPartitions) -
Method Summary
Methods inherited from class org.apache.spark.Partitioner
defaultPartitioner
-
Constructor Details
-
VeniceSparkPartitioner
public VeniceSparkPartitioner(org.apache.spark.broadcast.Broadcast<Properties> broadcastProperties, int numPartitions)
-
-
Method Details
-
numPartitions
public int numPartitions()- Specified by:
numPartitionsin classorg.apache.spark.Partitioner
-
getPartition
- Specified by:
getPartitionin classorg.apache.spark.Partitioner
-