Class InMemoryKNNJoinIterator<T extends org.locationtech.jts.geom.Geometry,U extends org.locationtech.jts.geom.Geometry>

java.lang.Object
org.apache.sedona.core.joinJudgement.InMemoryKNNJoinIterator<T,U>
All Implemented Interfaces:
Iterator<org.apache.commons.lang3.tuple.Pair<T,U>>

public class InMemoryKNNJoinIterator<T extends org.locationtech.jts.geom.Geometry,U extends org.locationtech.jts.geom.Geometry> extends Object implements Iterator<org.apache.commons.lang3.tuple.Pair<T,U>>
  • Constructor Details

    • InMemoryKNNJoinIterator

      public InMemoryKNNJoinIterator(Iterator<T> querySideIterator, org.locationtech.jts.index.strtree.STRtree strTree, int k, DistanceMetric distanceMetric, boolean includeTies, org.apache.spark.util.LongAccumulator streamCount, org.apache.spark.util.LongAccumulator resultCount)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T extends org.locationtech.jts.geom.Geometry>
    • next

      public org.apache.commons.lang3.tuple.Pair<T,U> next()
      Specified by:
      next in interface Iterator<T extends org.locationtech.jts.geom.Geometry>