public class PartitionKeyBasedPartitioner extends SpatialPartitioner
PartitionKey, to partitions of type SpatialPartition which have been previously calculated by a SpatialPartitioning algorithm implementation.| Constructor and Description |
|---|
PartitionKeyBasedPartitioner(java.util.List<SpatialPartition> partitions)
Creates a new instance which will map RDD elements to the given spatial partitions
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getPartition(java.lang.Object obj) |
java.util.List<SpatialPartition> |
getPartitions()
Gets the partitions used to partition an RDD
|
int |
numPartitions() |
public PartitionKeyBasedPartitioner(java.util.List<SpatialPartition> partitions)
partitions -public int numPartitions()
numPartitions in class org.apache.spark.Partitionerpublic int getPartition(java.lang.Object obj)
getPartition in class org.apache.spark.Partitionerpublic java.util.List<SpatialPartition> getPartitions()
SpatialPartitionergetPartitions in class SpatialPartitionerpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.