public class DistanceValueSource extends DoubleValuesSource
PointVectorStrategy
.SCORES
Constructor and Description |
---|
DistanceValueSource(PointVectorStrategy strategy,
org.locationtech.spatial4j.shape.Point from,
double multiplier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DoubleValues |
getValues(LeafReaderContext readerContext,
DoubleValues scores)
Returns the FunctionValues used by the function query.
|
int |
hashCode() |
boolean |
needsScores() |
String |
toString()
Returns the ValueSource description.
|
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromScorer, getSortField, toLongValuesSource
public DistanceValueSource(PointVectorStrategy strategy, org.locationtech.spatial4j.shape.Point from, double multiplier)
public String toString()
toString
in class DoubleValuesSource
public DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws IOException
getValues
in class DoubleValuesSource
IOException
public boolean needsScores()
needsScores
in class DoubleValuesSource
public boolean equals(Object o)
equals
in class DoubleValuesSource
public int hashCode()
hashCode
in class DoubleValuesSource
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.