|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Filter
org.apache.lucene.spatial.tier.DistanceFilter
public abstract class DistanceFilter
NOTE: This API is still in flux and might change in incompatible ways in the next release.
| Field Summary | |
|---|---|
protected double |
distance
|
protected WeakHashMap<String,Double> |
distanceLookupCache
|
protected Map<Integer,Double> |
distances
|
protected int |
nextDocBase
|
protected DistanceHandler.Precision |
precise
|
protected Filter |
startingFilter
|
| Constructor Summary | |
|---|---|
DistanceFilter(Filter startingFilter,
double distance)
Filters the startingFilter by precise distance checking filter |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.lucene.search.Filter |
|---|
bits, getDocIdSet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Filter startingFilter
protected DistanceHandler.Precision precise
protected Map<Integer,Double> distances
protected double distance
protected int nextDocBase
protected final WeakHashMap<String,Double> distanceLookupCache
| Constructor Detail |
|---|
public DistanceFilter(Filter startingFilter,
double distance)
| Method Detail |
|---|
public Map<Integer,Double> getDistances()
public Double getDistance(int docid)
public void setDistances(Map<Integer,Double> distances)
public void reset()
public abstract boolean equals(Object o)
o is equal to this.
equals in class Objectpublic abstract int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||