@Deprecated
public abstract class DistanceFilter
extends org.apache.lucene.search.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
Deprecated.
|
protected java.util.WeakHashMap<java.lang.String,java.lang.Double> |
distanceLookupCache
Deprecated.
|
protected java.util.Map<java.lang.Integer,java.lang.Double> |
distances
Deprecated.
|
protected int |
nextDocBase
Deprecated.
|
protected DistanceHandler.Precision |
precise
Deprecated.
|
protected org.apache.lucene.search.Filter |
startingFilter
Deprecated.
|
Constructor and Description |
---|
DistanceFilter(org.apache.lucene.search.Filter startingFilter,
double distance)
Deprecated.
Filters the startingFilter by precise distance
checking filter
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(java.lang.Object o)
Deprecated.
Returns true if
o is equal to this. |
java.lang.Double |
getDistance(int docid)
Deprecated.
|
java.util.Map<java.lang.Integer,java.lang.Double> |
getDistances()
Deprecated.
|
abstract int |
hashCode()
Deprecated.
Returns a hash code value for this object.
|
void |
reset()
Deprecated.
You must call this before re-using this DistanceFilter
across searches
|
void |
setDistances(java.util.Map<java.lang.Integer,java.lang.Double> distances)
Deprecated.
|
protected final org.apache.lucene.search.Filter startingFilter
protected DistanceHandler.Precision precise
protected java.util.Map<java.lang.Integer,java.lang.Double> distances
protected double distance
protected int nextDocBase
protected transient java.util.WeakHashMap<java.lang.String,java.lang.Double> distanceLookupCache
public DistanceFilter(org.apache.lucene.search.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.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000-2023 Apache Software Foundation. All Rights Reserved.