Uses of Enum Class
org.apache.sedona.core.enums.DistanceMetric
Packages that use DistanceMetric
Package
Description
-
Uses of DistanceMetric in org.apache.sedona.core.enums
Methods in org.apache.sedona.core.enums that return DistanceMetricModifier and TypeMethodDescriptionstatic DistanceMetricReturns the enum constant of this class with the specified name.static DistanceMetric[]DistanceMetric.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of DistanceMetric in org.apache.sedona.core.joinJudgement
Methods in org.apache.sedona.core.joinJudgement with parameters of type DistanceMetricModifier and TypeMethodDescriptionstatic <U extends org.locationtech.jts.geom.Geometry,T extends org.locationtech.jts.geom.Geometry>
doubleKnnJoinIndexJudgement.distance(U key, T value, DistanceMetric distanceMetric) static doubleKnnJoinIndexJudgement.distanceByMetric(org.locationtech.jts.geom.Geometry queryGeom, org.locationtech.jts.geom.Geometry candidateGeom, DistanceMetric distanceMetric) This method calculates the distance between two geometries using the specified distance metric.static org.locationtech.jts.index.strtree.ItemDistanceKnnJoinIndexJudgement.getItemDistance(DistanceMetric distanceMetric) static org.locationtech.jts.index.strtree.ItemDistanceKnnJoinIndexJudgement.getItemDistanceByMetric(DistanceMetric distanceMetric) This method returns the ItemDistance object based on the specified distance metric.Constructors in org.apache.sedona.core.joinJudgement with parameters of type DistanceMetricModifierConstructorDescriptionInMemoryKNNJoinIterator(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) KnnJoinIndexJudgement(int k, DistanceMetric distanceMetric, boolean includeTies, org.apache.spark.broadcast.Broadcast<List<T>> broadcastQueryObjects, org.apache.spark.broadcast.Broadcast<org.locationtech.jts.index.strtree.STRtree> broadcastObjectsTreeIndex, org.apache.spark.util.LongAccumulator buildCount, org.apache.spark.util.LongAccumulator streamCount, org.apache.spark.util.LongAccumulator resultCount, org.apache.spark.util.LongAccumulator candidateCount) Constructor for the KnnJoinIndexJudgement class. -
Uses of DistanceMetric in org.apache.sedona.core.spatialOperator
Fields in org.apache.sedona.core.spatialOperator declared as DistanceMetricMethods in org.apache.sedona.core.spatialOperator with parameters of type DistanceMetricModifier and TypeMethodDescriptionstatic <U extends org.locationtech.jts.geom.Geometry,T extends org.locationtech.jts.geom.Geometry>
org.apache.spark.api.java.JavaPairRDD<U,List<T>> JoinQuery.KNNJoinQuery(SpatialRDD<T> objectRDD, SpatialRDD<U> queryRDD, IndexType indexType, int k, DistanceMetric distanceMetric) Joins two sets of geometries on specified distance metric and finds the k nearest neighbors.Constructors in org.apache.sedona.core.spatialOperator with parameters of type DistanceMetricModifierConstructorDescriptionJoinParams(boolean useIndex, SpatialPredicate spatialPredicate, IndexType polygonIndexType, JoinBuildSide joinBuildSide, int k, DistanceMetric distanceMetric)