Class KDB
java.lang.Object
org.apache.sedona.core.spatialPartitioning.PartitioningUtils
org.apache.sedona.core.spatialPartitioning.KDB
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKDB(int maxItemsPerNode, int maxLevels, org.locationtech.jts.geom.Envelope extent) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidList<org.locationtech.jts.geom.Envelope>findLeafNodes(org.locationtech.jts.geom.Envelope envelope) org.locationtech.jts.geom.EnvelopeintgetKeys(org.locationtech.jts.geom.Geometry geometry) intvoidinsert(org.locationtech.jts.geom.Envelope envelope) booleanisLeaf()placeObject(org.locationtech.jts.geom.Geometry geometry) voidtraverse(KDB.Visitor visitor) Traverses the tree top-down breadth-first and calls the visitor for each node.Methods inherited from class org.apache.sedona.core.spatialPartitioning.PartitioningUtils
getPartitioner, getPartitioner
-
Constructor Details
-
KDB
public KDB(int maxItemsPerNode, int maxLevels, org.locationtech.jts.geom.Envelope extent)
-
-
Method Details
-
getItemCount
public int getItemCount() -
isLeaf
public boolean isLeaf() -
getLeafId
public int getLeafId() -
getExtent
public org.locationtech.jts.geom.Envelope getExtent() -
insert
public void insert(org.locationtech.jts.geom.Envelope envelope) -
dropElements
public void dropElements() -
findLeafNodes
-
traverse
Traverses the tree top-down breadth-first and calls the visitor for each node. Stops traversing if a call to Visitor.visit returns false. -
assignLeafIds
public void assignLeafIds() -
placeObject
public Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry geometry) - Specified by:
placeObjectin classPartitioningUtils
-
getKeys
- Specified by:
getKeysin classPartitioningUtils
-
fetchLeafZones
- Specified by:
fetchLeafZonesin classPartitioningUtils
-