org.apache.lucene.spatial.util
Class CachedDistanceValueSource
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.spatial.util.CachedDistanceValueSource
public class CachedDistanceValueSource
- extends ValueSource
An implementation of the Lucene ValueSource model to support spatial relevance ranking.
CachedDistanceValueSource
public CachedDistanceValueSource(com.spatial4j.core.shape.Point from,
com.spatial4j.core.distance.DistanceCalculator calc,
ShapeFieldCacheProvider<com.spatial4j.core.shape.Point> provider)
description
public String description()
- Specified by:
description
in class ValueSource
getValues
public FunctionValues getValues(Map context,
AtomicReaderContext readerContext)
throws IOException
- Specified by:
getValues
in class ValueSource
- Throws:
IOException
equals
public boolean equals(Object o)
- Specified by:
equals
in class ValueSource
hashCode
public int hashCode()
- Specified by:
hashCode
in class ValueSource
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.