Class KDB
- java.lang.Object
- 
- org.apache.sedona.core.spatialPartitioning.PartitioningUtils
- 
- org.apache.sedona.core.spatialPartitioning.KDB
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class KDB extends PartitioningUtils implements Serializable - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceKDB.Visitor
 - 
Constructor SummaryConstructors Constructor Description KDB(int maxItemsPerNode, int maxLevels, org.locationtech.jts.geom.Envelope extent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignLeafIds()voiddropElements()List<org.locationtech.jts.geom.Envelope>fetchLeafZones()List<KDB>findLeafNodes(org.locationtech.jts.geom.Envelope envelope)org.locationtech.jts.geom.EnvelopegetExtent()intgetItemCount()Set<Integer>getKeys(org.locationtech.jts.geom.Geometry geometry)intgetLeafId()voidinsert(org.locationtech.jts.geom.Envelope envelope)booleanisLeaf()Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>>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.PartitioningUtilsgetPartitioner, getPartitioner
 
- 
 
- 
- 
- 
Method Detail- 
getItemCountpublic int getItemCount() 
 - 
isLeafpublic boolean isLeaf() 
 - 
getLeafIdpublic int getLeafId() 
 - 
getExtentpublic org.locationtech.jts.geom.Envelope getExtent() 
 - 
insertpublic void insert(org.locationtech.jts.geom.Envelope envelope) 
 - 
dropElementspublic void dropElements() 
 - 
traversepublic void traverse(KDB.Visitor visitor) Traverses the tree top-down breadth-first and calls the visitor for each node. Stops traversing if a call to Visitor.visit returns false.
 - 
assignLeafIdspublic void assignLeafIds() 
 - 
placeObjectpublic Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry geometry) - Specified by:
- placeObjectin class- PartitioningUtils
 
 - 
getKeyspublic Set<Integer> getKeys(org.locationtech.jts.geom.Geometry geometry) - Specified by:
- getKeysin class- PartitioningUtils
 
 - 
fetchLeafZonespublic List<org.locationtech.jts.geom.Envelope> fetchLeafZones() - Specified by:
- fetchLeafZonesin class- PartitioningUtils
 
 
- 
 
-