public class DistanceToShapeValueSource extends DoubleValuesSource
DistanceCalculator.SCORES| Constructor and Description |
|---|
DistanceToShapeValueSource(ShapeValuesSource shapeValueSource,
org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier,
org.locationtech.spatial4j.context.SpatialContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
DoubleValues |
getValues(LeafReaderContext readerContext,
DoubleValues scores)
Returns a
DoubleValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false, callers
may safely pass null for the scores parameter. |
int |
hashCode() |
boolean |
needsScores()
Return true if document scores are needed to calculate values
|
java.lang.String |
toString() |
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromScorer, getSortField, toLongValuesSourcepublic DistanceToShapeValueSource(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.shape.Point queryPoint, double multiplier, org.locationtech.spatial4j.context.SpatialContext ctx)
public java.lang.String toString()
toString in class DoubleValuesSourcepublic DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws java.io.IOException
DoubleValuesSourceDoubleValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false, callers
may safely pass null for the scores parameter.getValues in class DoubleValuesSourcejava.io.IOExceptionpublic boolean needsScores()
DoubleValuesSourceneedsScores in class DoubleValuesSourcepublic boolean equals(java.lang.Object o)
equals in class DoubleValuesSourcepublic int hashCode()
hashCode in class DoubleValuesSourceCopyright © 2000–2018 The Apache Software Foundation. All rights reserved.