Class KNNQuery

java.lang.Object
org.apache.sedona.core.spatialOperator.KNNQuery
All Implemented Interfaces:
Serializable

public class KNNQuery extends Object implements Serializable
The Class KNNQuery.
See Also:
  • Constructor Details

    • KNNQuery

      public KNNQuery()
  • Method Details

    • SpatialKnnQuery

      public static <U extends org.locationtech.jts.geom.Geometry, T extends org.locationtech.jts.geom.Geometry> List<T> SpatialKnnQuery(SpatialRDD<T> spatialRDD, U originalQueryPoint, Integer k, boolean useIndex)
      Spatial knn query.
      Parameters:
      spatialRDD - the spatial RDD
      originalQueryPoint - the original query window
      k - the k
      useIndex - the use index
      Returns:
      the list