public abstract class DistanceFilter extends Filter
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Modifier and Type | Field and Description |
---|---|
protected double |
distance |
protected WeakHashMap<String,Double> |
distanceLookupCache |
protected Map<Integer,Double> |
distances |
protected int |
nextDocBase |
protected DistanceHandler.Precision |
precise |
protected Filter |
startingFilter |
Constructor and Description |
---|
DistanceFilter(Filter startingFilter,
double distance)
Filters the startingFilter by precise distance
checking filter
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object o)
Returns true if
o is equal to this. |
Double |
getDistance(int docid) |
Map<Integer,Double> |
getDistances() |
abstract int |
hashCode()
Returns a hash code value for this object.
|
void |
reset()
You must call this before re-using this DistanceFilter
across searches
|
void |
setDistances(Map<Integer,Double> distances) |
bits, getDocIdSet
protected final Filter startingFilter
protected DistanceHandler.Precision precise
protected double distance
protected int nextDocBase
protected final WeakHashMap<String,Double> distanceLookupCache
public DistanceFilter(Filter startingFilter, double distance)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.