Class StandardQuadTree<T>
java.lang.Object
org.apache.sedona.core.spatialPartitioning.PartitioningUtils
org.apache.sedona.core.spatialPartitioning.quadtree.StandardQuadTree<T>
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionStandardQuadTree(QuadRectangle definition, int level) StandardQuadTree(QuadRectangle definition, int level, int maxItemsPerZone, int maxLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidList<org.locationtech.jts.geom.Envelope>voidforceGrowUp(int minLevel) getKeys(org.locationtech.jts.geom.Geometry geometry) getParentZone(int x, int y, int minLevel) intgetZone()getZone(int x, int y) Find the zone that fully contains this query pointvoidinsert(QuadRectangle r, T element) booleanisLeaf()placeObject(org.locationtech.jts.geom.Geometry geometry) Methods inherited from class org.apache.sedona.core.spatialPartitioning.PartitioningUtils
getPartitioner, getPartitioner
-
Field Details
-
REGION_SELF
public static final int REGION_SELF- See Also:
-
REGION_NW
public static final int REGION_NW- See Also:
-
REGION_NE
public static final int REGION_NE- See Also:
-
REGION_SW
public static final int REGION_SW- See Also:
-
REGION_SE
public static final int REGION_SE- See Also:
-
-
Constructor Details
-
StandardQuadTree
-
StandardQuadTree
-
-
Method Details
-
getZone
-
forceGrowUp
public void forceGrowUp(int minLevel) -
insert
-
dropElements
public void dropElements() -
getElements
-
isLeaf
public boolean isLeaf() -
getAllZones
-
getTotalNumLeafNode
public int getTotalNumLeafNode() -
getZone
Find the zone that fully contains this query point- Parameters:
x-y-- Returns:
- Throws:
ArrayIndexOutOfBoundsException
-
getParentZone
- Throws:
Exception
-
findZones
-
assignPartitionIds
public void assignPartitionIds() -
assignPartitionLineage
public void assignPartitionLineage() -
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
-