org.apache.lucene.spatial.util
Class DistanceToShapeValueSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.spatial.util.DistanceToShapeValueSource
public class DistanceToShapeValueSource
- extends ValueSource
The distance from a provided Point to a Point retrieved from a ValueSource via
FunctionValues.objectVal(int)
. The distance
is calculated via a DistanceCalculator
.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Constructor Summary |
DistanceToShapeValueSource(ValueSource shapeValueSource,
com.spatial4j.core.shape.Point queryPoint,
double multiplier,
com.spatial4j.core.context.SpatialContext ctx)
|
DistanceToShapeValueSource
public DistanceToShapeValueSource(ValueSource shapeValueSource,
com.spatial4j.core.shape.Point queryPoint,
double multiplier,
com.spatial4j.core.context.SpatialContext ctx)
description
public String description()
- Specified by:
description
in class ValueSource
createWeight
public void createWeight(Map context,
IndexSearcher searcher)
throws IOException
- Overrides:
createWeight
in class ValueSource
- Throws:
IOException
getValues
public FunctionValues getValues(Map context,
AtomicReaderContext readerContext)
throws IOException
- Specified by:
getValues
in class ValueSource
- Throws:
IOException
equals
public boolean equals(Object o)
- Specified by:
equals
in class ValueSource
hashCode
public int hashCode()
- Specified by:
hashCode
in class ValueSource
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.