public class ShapeFieldCacheDistanceValueSource extends DoubleValuesSource
ShapeFieldCacheProvider. The shortest distance is returned if a
document has more than one point.SCORES| Constructor and Description |
|---|
ShapeFieldCacheDistanceValueSource(org.locationtech.spatial4j.context.SpatialContext ctx,
ShapeFieldCacheProvider<org.locationtech.spatial4j.shape.Point> provider,
org.locationtech.spatial4j.shape.Point from,
double multiplier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
DoubleValues |
getValues(LeafReaderContext readerContext,
DoubleValues scores) |
int |
hashCode() |
boolean |
needsScores() |
String |
toString() |
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromScorer, getSortField, toLongValuesSourcepublic ShapeFieldCacheDistanceValueSource(org.locationtech.spatial4j.context.SpatialContext ctx,
ShapeFieldCacheProvider<org.locationtech.spatial4j.shape.Point> provider,
org.locationtech.spatial4j.shape.Point from,
double multiplier)
public String toString()
toString in class DoubleValuesSourcepublic DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws IOException
getValues in class DoubleValuesSourceIOExceptionpublic boolean needsScores()
needsScores in class DoubleValuesSourcepublic boolean equals(Object o)
equals in class DoubleValuesSourcepublic int hashCode()
hashCode in class DoubleValuesSourceCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.