public class SpatialPartitioner extends org.apache.spark.Partitioner implements Serializable
| Constructor and Description |
|---|
SpatialPartitioner(int grids)
Instantiates a new spatial partitioner.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPartition(Object key) |
int |
numPartitions() |
public SpatialPartitioner(int grids)
grids - the gridspublic int getPartition(Object key)
getPartition in class org.apache.spark.Partitionerpublic int numPartitions()
numPartitions in class org.apache.spark.PartitionerCopyright © 2017. All rights reserved.