Class KNNQuery
java.lang.Object
org.apache.sedona.core.spatialOperator.KNNQuery
- All Implemented Interfaces:
Serializable
The Class KNNQuery.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
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 RDDoriginalQueryPoint- the original query windowk- the kuseIndex- the use index- Returns:
- the list
-