public class ShapeFieldCacheDistanceValueSource extends ValueSource
ShapeFieldCacheProvider
. The shortest distance is returned if a
document has more than one point.Constructor and Description |
---|
ShapeFieldCacheDistanceValueSource(SpatialContext ctx,
ShapeFieldCacheProvider<Point> provider,
Point from,
double multiplier) |
Modifier and Type | Method and Description |
---|---|
String |
description()
description of field, used in explain()
|
boolean |
equals(Object o) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight()
|
int |
hashCode() |
asDoubleValuesSource, asLongValuesSource, createWeight, getSortField, newContext, toString
public ShapeFieldCacheDistanceValueSource(SpatialContext ctx, ShapeFieldCacheProvider<Point> provider, Point from, double multiplier)
public String description()
ValueSource
description
in class ValueSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSource
getValues
in class ValueSource
IOException
public boolean equals(Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource