Class GenericUniquePartitioner
java.lang.Object
org.apache.spark.Partitioner
org.apache.sedona.core.spatialPartitioning.SpatialPartitioner
org.apache.sedona.core.spatialPartitioning.GenericUniquePartitioner
- 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 TypeMethodDescriptionList<org.locationtech.jts.geom.Envelope>getGrids()intplaceObject(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
getPartitionMethods inherited from class org.apache.spark.Partitioner
defaultPartitioner
-
Constructor Details
-
GenericUniquePartitioner
-
-
Method Details
-
getGridType
- Overrides:
getGridTypein classSpatialPartitioner
-
getGrids
- Overrides:
getGridsin classSpatialPartitioner
-
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
-
numPartitions
public int numPartitions()- Specified by:
numPartitionsin classorg.apache.spark.Partitioner
-