|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.queries.function.ValueSource
org.apache.lucene.spatial.vector.DistanceValueSource
public class DistanceValueSource
An implementation of the Lucene ValueSource model to support spatial relevance ranking.
| Constructor Summary | |
|---|---|
DistanceValueSource(com.spatial4j.core.shape.Point from,
com.spatial4j.core.distance.DistanceCalculator calc,
TwoDoublesFieldInfo fields,
FieldCache.DoubleParser parser)
Constructor. |
|
| Method Summary | |
|---|---|
String |
description()
Returns the ValueSource description. |
boolean |
equals(Object o)
Determines if this ValueSource is equal to another. |
FunctionValues |
getValues(Map context,
AtomicReaderContext readerContext)
Returns the FunctionValues used by the function query. |
int |
hashCode()
|
| Methods inherited from class org.apache.lucene.queries.function.ValueSource |
|---|
createWeight, getSortField, newContext, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DistanceValueSource(com.spatial4j.core.shape.Point from,
com.spatial4j.core.distance.DistanceCalculator calc,
TwoDoublesFieldInfo fields,
FieldCache.DoubleParser parser)
| Method Detail |
|---|
public String description()
description in class ValueSource
public FunctionValues getValues(Map context,
AtomicReaderContext readerContext)
throws IOException
getValues in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourceo - the ValueSource to compare
true if the two objects are based upon the same query envelopepublic int hashCode()
hashCode in class ValueSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||