public class DistanceValueSource extends ValueSource
| Constructor and Description |
|---|
DistanceValueSource(TwoDoublesStrategy strategy,
com.spatial4j.core.shape.Point from,
com.spatial4j.core.distance.DistanceCalculator calc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
createWeight, getSortField, newContext, toStringpublic DistanceValueSource(TwoDoublesStrategy strategy, com.spatial4j.core.shape.Point from, com.spatial4j.core.distance.DistanceCalculator calc)
public String description()
description in class ValueSourcepublic FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
getValues in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourceo - the ValueSource to comparetrue if the two objects are based upon the same query envelopepublic int hashCode()
hashCode in class ValueSourceCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.