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 java.util.WeakHashMap<java.lang.String,java.lang.Double> |
distanceLookupCache |
protected java.util.Map<java.lang.Integer,java.lang.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(java.lang.Object o)
Returns true if
o is equal to this. |
java.lang.Double |
getDistance(int docid) |
java.util.Map<java.lang.Integer,java.lang.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(java.util.Map<java.lang.Integer,java.lang.Double> distances) |
bits, getDocIdSetprotected final Filter startingFilter
protected DistanceHandler.Precision precise
protected java.util.Map<java.lang.Integer,java.lang.Double> distances
protected double distance
protected int nextDocBase
protected final java.util.WeakHashMap<java.lang.String,java.lang.Double> distanceLookupCache
public DistanceFilter(Filter startingFilter, double distance)
public java.util.Map<java.lang.Integer,java.lang.Double> getDistances()
public java.lang.Double getDistance(int docid)
public void setDistances(java.util.Map<java.lang.Integer,java.lang.Double> distances)
public void reset()
public abstract boolean equals(java.lang.Object o)
o is equal to this.equals in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.