public class KDBTreePartitioner extends SpatialPartitioner
grids, gridType
Constructor and Description |
---|
KDBTreePartitioner(KDB tree) |
Modifier and Type | Method and Description |
---|---|
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 KDBTreePartitioner(KDB tree)
public int numPartitions()
numPartitions
in class org.apache.spark.Partitioner
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
Copyright © 2023 The Apache Software Foundation. All rights reserved.