public class QuadTreePartitioner extends SpatialPartitioner
grids, gridType
Constructor and Description |
---|
QuadTreePartitioner(StandardQuadTree<? extends org.locationtech.jts.geom.Geometry> quadTree) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DedupParams |
getDedupParams() |
int |
numPartitions() |
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.
|
getGrids, getGridType, getPartition
public QuadTreePartitioner(StandardQuadTree<? extends org.locationtech.jts.geom.Geometry> quadTree)
public Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry spatialObject) throws Exception
SpatialPartitioner
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.
placeObject
in class SpatialPartitioner
Exception
@Nullable public DedupParams getDedupParams()
getDedupParams
in class SpatialPartitioner
public int numPartitions()
numPartitions
in class org.apache.spark.Partitioner
Copyright © 2023 The Apache Software Foundation. All rights reserved.