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(Object o) |
DoubleValues |
getValues(LeafReaderContext readerContext,
DoubleValues scores) |
int |
hashCode() |
boolean |
isCacheable(LeafReaderContext ctx) |
boolean |
needsScores() |
DoubleValuesSource |
rewrite(IndexSearcher searcher) |
String |
toString() |
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromQuery, fromScorer, getSortField, toLongValuesSource
public DistanceToShapeValueSource(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.shape.Point queryPoint, double multiplier, org.locationtech.spatial4j.context.SpatialContext ctx)
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 isCacheable(LeafReaderContext ctx)
public DoubleValuesSource rewrite(IndexSearcher searcher) throws IOException
rewrite
in class DoubleValuesSource
IOException
public boolean equals(Object o)
equals
in class DoubleValuesSource
public int hashCode()
hashCode
in class DoubleValuesSource
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.