Package org.apache.lucene.spatial.tier
Class LatLongDistanceFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- org.apache.lucene.spatial.tier.DistanceFilter
-
- org.apache.lucene.spatial.tier.LatLongDistanceFilter
-
- All Implemented Interfaces:
Serializable
@Deprecated public class LatLongDistanceFilter extends DistanceFilter
Deprecated.NOTE: This API is still in flux and might change in incompatible ways in the next release.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.spatial.tier.DistanceFilter
distance, distanceLookupCache, distances, nextDocBase, precise, startingFilter
-
-
Constructor Summary
Constructors Constructor Description LatLongDistanceFilter(org.apache.lucene.search.Filter startingFilter, double lat, double lng, double miles, String latField, String lngField)Deprecated.Provide a distance filter based from a center point with a radius in miles.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.Returns true ifois equal to this.org.apache.lucene.search.DocIdSetgetDocIdSet(org.apache.lucene.index.IndexReader reader)Deprecated.inthashCode()Deprecated.Returns a hash code value for this object.-
Methods inherited from class org.apache.lucene.spatial.tier.DistanceFilter
getDistance, getDistances, reset, setDistances
-
-
-
-
Constructor Detail
-
LatLongDistanceFilter
public LatLongDistanceFilter(org.apache.lucene.search.Filter startingFilter, double lat, double lng, double miles, String latField, String lngField)Deprecated.Provide a distance filter based from a center point with a radius in miles.- Parameters:
startingFilter- Filter to start fromlat-lng-miles-latField-lngField-
-
-
Method Detail
-
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOExceptionDeprecated.- Specified by:
getDocIdSetin classorg.apache.lucene.search.Filter- Throws:
IOException
-
equals
public boolean equals(Object o)
Deprecated.Returns true ifois equal to this.- Specified by:
equalsin classDistanceFilter
-
hashCode
public int hashCode()
Deprecated.Returns a hash code value for this object.- Specified by:
hashCodein classDistanceFilter
-
-