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,- scala.Serializable
 
 public class GenericUniquePartitioner extends SpatialPartitioner - See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.sedona.core.spatialPartitioning.SpatialPartitionergrids, gridType
 
- 
 - 
Constructor SummaryConstructors Constructor Description GenericUniquePartitioner(SpatialPartitioner parent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DedupParamsgetDedupParams()List<org.locationtech.jts.geom.Envelope>getGrids()GridTypegetGridType()intnumPartitions()Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>>placeObject(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.SpatialPartitionergetPartition
 
- 
 
- 
- 
- 
Constructor Detail- 
GenericUniquePartitionerpublic GenericUniquePartitioner(SpatialPartitioner parent) 
 
- 
 - 
Method Detail- 
getGridTypepublic GridType getGridType() - Overrides:
- getGridTypein class- SpatialPartitioner
 
 - 
getGridspublic List<org.locationtech.jts.geom.Envelope> getGrids() - Overrides:
- getGridsin class- SpatialPartitioner
 
 - 
placeObjectpublic 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 class- SpatialPartitioner
- Throws:
- Exception
 
 - 
getDedupParams@Nullable public DedupParams getDedupParams() - Specified by:
- getDedupParamsin class- SpatialPartitioner
 
 - 
numPartitionspublic int numPartitions() - Specified by:
- numPartitionsin class- org.apache.spark.Partitioner
 
 
- 
 
-