|
|||||||||
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(TwoDoublesStrategy strategy,
com.spatial4j.core.shape.Point from,
com.spatial4j.core.distance.DistanceCalculator calc)
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(TwoDoublesStrategy strategy, com.spatial4j.core.shape.Point from, com.spatial4j.core.distance.DistanceCalculator calc)
Method Detail |
---|
public String description()
description
in class ValueSource
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
getValues
in class ValueSource
IOException
public boolean equals(Object o)
equals
in class ValueSource
o
- 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 |