Package org.apache.lucene.spatial.tier
Class DistanceHandler
- java.lang.Object
-
- org.apache.lucene.spatial.tier.DistanceHandler
-
@Deprecated public class DistanceHandler extends Object
Deprecated.Provide a high level access point to distances Used by DistanceSortSource and DistanceQueryNOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DistanceHandler.Precision
Deprecated.
-
Constructor Summary
Constructors Constructor Description DistanceHandler(Map<Integer,Double> distances, Map<String,Double> distanceLookupCache, DistanceHandler.Precision precise)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
getDistance(int docid, double centerLat, double centerLng, double lat, double lng)
Deprecated.DistanceHandler.Precision
getPrecision()
Deprecated.static double
getPrecision(double x, DistanceHandler.Precision thisPrecise)
Deprecated.
-
-
-
Method Detail
-
getPrecision
public static double getPrecision(double x, DistanceHandler.Precision thisPrecise)
Deprecated.
-
getPrecision
public DistanceHandler.Precision getPrecision()
Deprecated.
-
getDistance
public double getDistance(int docid, double centerLat, double centerLng, double lat, double lng)
Deprecated.
-
-