Class KDBTreePartitioner
java.lang.Object
org.apache.spark.Partitioner
org.apache.sedona.core.spatialPartitioning.SpatialPartitioner
org.apache.sedona.core.spatialPartitioning.KDBTreePartitioner
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class org.apache.sedona.core.spatialPartitioning.SpatialPartitioner
grids, gridType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintplaceObject(org.locationtech.jts.geom.Geometry spatialObject) Given a geometry, returns a list of partitions it overlaps.Methods inherited from class org.apache.sedona.core.spatialPartitioning.SpatialPartitioner
getGrids, getGridType, getPartitionMethods inherited from class org.apache.spark.Partitioner
defaultPartitioner
-
Constructor Details
-
KDBTreePartitioner
-
-
Method Details
-
numPartitions
public int numPartitions()- Specified by:
numPartitionsin classorg.apache.spark.Partitioner
-
placeObject
public Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry spatialObject) throws Exception Description copied from class:SpatialPartitionerGiven a geometry, returns a list of partitions it overlaps.For points, returns exactly one partition as long as grid type is non-overlapping. For other geometry types or for overlapping grid types, may return multiple partitions.
- Specified by:
placeObjectin classSpatialPartitioner- Throws:
Exception
-
getDedupParams
- Specified by:
getDedupParamsin classSpatialPartitioner
-