public class DistanceToShapeValueSource extends ValueSource
FunctionValues.objectVal(int). The distance
is calculated via a DistanceCalculator.| Constructor and Description |
|---|
DistanceToShapeValueSource(ValueSource shapeValueSource,
org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier,
org.locationtech.spatial4j.context.SpatialContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeight(Map context,
IndexSearcher searcher) |
String |
description() |
boolean |
equals(Object o) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
int |
hashCode() |
asDoubleValuesSource, asLongValuesSource, getSortField, newContext, toStringpublic DistanceToShapeValueSource(ValueSource shapeValueSource, org.locationtech.spatial4j.shape.Point queryPoint, double multiplier, org.locationtech.spatial4j.context.SpatialContext ctx)
public String description()
description in class ValueSourcepublic void createWeight(Map context, IndexSearcher searcher) throws IOException
createWeight in class ValueSourceIOExceptionpublic FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourcepublic int hashCode()
hashCode in class ValueSourceCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.