public class SparkPartitioner
extends org.apache.spark.Partitioner
| Constructor and Description |
|---|
SparkPartitioner(int numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartition(Object key) |
int |
numPartitions() |
public int numPartitions()
numPartitions in class org.apache.spark.Partitionerpublic int getPartition(Object key)
getPartition in class org.apache.spark.PartitionerCopyright © 2015 The Apache Software Foundation. All Rights Reserved.