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 boolean equals(java.lang.Object obj)
public int getPartition(java.lang.Object obj)
public java.util.List<SpatialPartition> getPartitions()
SpatialPartitioner
getPartitions
in class SpatialPartitioner
public int numPartitions()
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.