Class GeometryDistanceComparator<T extends org.locationtech.jts.geom.Geometry>
java.lang.Object
org.apache.sedona.core.knnJudgement.GeometryDistanceComparator<T>
- All Implemented Interfaces:
Serializable,Comparator<T>
public class GeometryDistanceComparator<T extends org.locationtech.jts.geom.Geometry>
extends Object
implements Comparator<T>, Serializable
The Class GeometryDistanceComparator.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryDistanceComparator(T queryCenter, boolean normalOrder) Instantiates a new geometry distance comparator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
GeometryDistanceComparator
Instantiates a new geometry distance comparator.- Parameters:
queryCenter- the query centernormalOrder- the normal order
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T extends org.locationtech.jts.geom.Geometry>
-