Class PartitioningUtils
- java.lang.Object
-
- org.apache.sedona.core.spatialPartitioning.PartitioningUtils
-
- Direct Known Subclasses:
ExtendedQuadTree
,KDB
,StandardQuadTree
public abstract class PartitioningUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PartitioningUtils()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<org.locationtech.jts.geom.Envelope>
fetchLeafZones()
abstract Set<Integer>
getKeys(org.locationtech.jts.geom.Geometry geometry)
static PartitioningUtils
getPartitioner(List<org.locationtech.jts.geom.Geometry> samples, GridType gridType, org.locationtech.jts.geom.Envelope boundaryEnvelope, int resolution)
static PartitioningUtils
getPartitioner(org.locationtech.jts.geom.Envelope boundaryEnvelope, int resolution)
If the user only provides boundary and numPartitions, use equal grids.abstract Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>>
placeObject(org.locationtech.jts.geom.Geometry geometry)
-
-
-
Method Detail
-
placeObject
public abstract Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry geometry)
-
fetchLeafZones
public abstract List<org.locationtech.jts.geom.Envelope> fetchLeafZones()
-
getPartitioner
public static PartitioningUtils getPartitioner(List<org.locationtech.jts.geom.Geometry> samples, GridType gridType, org.locationtech.jts.geom.Envelope boundaryEnvelope, int resolution)
-
getPartitioner
public static PartitioningUtils getPartitioner(org.locationtech.jts.geom.Envelope boundaryEnvelope, int resolution)
If the user only provides boundary and numPartitions, use equal grids.- Parameters:
boundaryEnvelope
-resolution
-- Returns:
-
-