public class QuadTreeRTPartitioning extends QuadtreePartitioning
By calculating distance bounds and using circle range queries, it ensures that the subsets Si, containing all necessary points for accurate kNN results. The final union of local join results provides the complete kNN join result for the datasets R and S.
It generates List> expandedPartitionedBoundaries based on the quad tree.
partitionTree
Constructor and Description |
---|
QuadTreeRTPartitioning(List<org.locationtech.jts.geom.Envelope> samples,
org.locationtech.jts.geom.Envelope boundary,
int partitions) |
QuadTreeRTPartitioning(List<org.locationtech.jts.geom.Envelope> samples,
org.locationtech.jts.geom.Envelope boundary,
int partitions,
int minTreeLevel) |
Modifier and Type | Method and Description |
---|---|
STRtree |
buildSTRTree(List<org.locationtech.jts.geom.Envelope> samples,
int k)
This function is used to build the STR tree from the quad-tree built from the samples.
|
HashMap<Integer,List<org.locationtech.jts.geom.Envelope>> |
getMbrs() |
STRtree |
getMbrSpatialIndex() |
double |
getMinimalEnvelopeWidth(List<QuadRectangle> partitionMBRs)
This function is used to calculate the minimal envelope width of the partitioned MBRs.
|
void |
processPartitions(List<QuadRectangle> partitionMBRs,
Map<Integer,List<org.locationtech.jts.geom.Envelope>> mbrs,
int k,
STRtree sampleTree,
org.locationtech.jts.geom.GeometryFactory geometryFactory) |
getPartitionTree
public QuadTreeRTPartitioning(List<org.locationtech.jts.geom.Envelope> samples, org.locationtech.jts.geom.Envelope boundary, int partitions) throws Exception
Exception
public STRtree getMbrSpatialIndex()
public STRtree buildSTRTree(List<org.locationtech.jts.geom.Envelope> samples, int k)
samples
- the samplesk
- the number of neighbor samplespublic void processPartitions(List<QuadRectangle> partitionMBRs, Map<Integer,List<org.locationtech.jts.geom.Envelope>> mbrs, int k, STRtree sampleTree, org.locationtech.jts.geom.GeometryFactory geometryFactory)
public double getMinimalEnvelopeWidth(List<QuadRectangle> partitionMBRs)
partitionMBRs
- Copyright © 2025 The Apache Software Foundation. All rights reserved.