public class KDB extends PartitioningUtils implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
KDB.Visitor |
Constructor and Description |
---|
KDB(int maxItemsPerNode,
int maxLevels,
org.locationtech.jts.geom.Envelope extent) |
Modifier and Type | Method and Description |
---|---|
void |
assignLeafIds() |
void |
dropElements() |
List<org.locationtech.jts.geom.Envelope> |
fetchLeafZones() |
List<KDB> |
findLeafNodes(org.locationtech.jts.geom.Envelope envelope) |
org.locationtech.jts.geom.Envelope |
getExtent() |
int |
getItemCount() |
Set<Integer> |
getKeys(org.locationtech.jts.geom.Geometry geometry) |
int |
getLeafId() |
void |
insert(org.locationtech.jts.geom.Envelope envelope) |
boolean |
isLeaf() |
Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> |
placeObject(org.locationtech.jts.geom.Geometry geometry) |
void |
traverse(KDB.Visitor visitor)
Traverses the tree top-down breadth-first and calls the visitor
for each node.
|
getPartitioner, getPartitioner
public KDB(int maxItemsPerNode, int maxLevels, org.locationtech.jts.geom.Envelope extent)
public int getItemCount()
public boolean isLeaf()
public int getLeafId()
public org.locationtech.jts.geom.Envelope getExtent()
public void insert(org.locationtech.jts.geom.Envelope envelope)
public void dropElements()
public void traverse(KDB.Visitor visitor)
public void assignLeafIds()
public Iterator<scala.Tuple2<Integer,org.locationtech.jts.geom.Geometry>> placeObject(org.locationtech.jts.geom.Geometry geometry)
placeObject
in class PartitioningUtils
public Set<Integer> getKeys(org.locationtech.jts.geom.Geometry geometry)
getKeys
in class PartitioningUtils
public List<org.locationtech.jts.geom.Envelope> fetchLeafZones()
fetchLeafZones
in class PartitioningUtils
Copyright © 2023 The Apache Software Foundation. All rights reserved.