Package org.apache.lucene.spatial.tier
Class DistanceFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- org.apache.lucene.spatial.tier.DistanceFilter
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GeoHashDistanceFilter,LatLongDistanceFilter
@Deprecated public abstract class DistanceFilter extends org.apache.lucene.search.Filter
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 Modifier and Type Field Description protected doubledistanceDeprecated.protected WeakHashMap<String,Double>distanceLookupCacheDeprecated.protected Map<Integer,Double>distancesDeprecated.protected intnextDocBaseDeprecated.protected DistanceHandler.PrecisionpreciseDeprecated.protected org.apache.lucene.search.FilterstartingFilterDeprecated.
-
Constructor Summary
Constructors Constructor Description DistanceFilter(org.apache.lucene.search.Filter startingFilter, double distance)Deprecated.Filters the startingFilter by precise distance checking filter
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract booleanequals(Object o)Deprecated.Returns true ifois equal to this.DoublegetDistance(int docid)Deprecated.Map<Integer,Double>getDistances()Deprecated.abstract inthashCode()Deprecated.Returns a hash code value for this object.voidreset()Deprecated.You must call this before re-using this DistanceFilter across searchesvoidsetDistances(Map<Integer,Double> distances)Deprecated.
-
-
-
Field Detail
-
startingFilter
protected final org.apache.lucene.search.Filter startingFilter
Deprecated.
-
precise
protected DistanceHandler.Precision precise
Deprecated.
-
distance
protected double distance
Deprecated.
-
nextDocBase
protected int nextDocBase
Deprecated.
-
distanceLookupCache
protected transient WeakHashMap<String,Double> distanceLookupCache
Deprecated.
-
-