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.Partitioner
public int getPartition(Object key)
getPartition
in class org.apache.spark.Partitioner
Copyright © 2016 The Apache Software Foundation. All rights reserved.