org.apache.solr.search.function.distance
Class GeohashFunction
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.solr.search.function.distance.GeohashFunction
public class GeohashFunction
- extends ValueSource
Takes in a latitude and longitude ValueSource and produces a GeoHash.
Ex: geohash(lat, lon)
Note, there is no reciprocal function for this.
lat
protected ValueSource lat
lon
protected ValueSource lon
GeohashFunction
public GeohashFunction(ValueSource lat,
ValueSource lon)
name
protected String name()
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
description
public String description()
- Specified by:
description
in class ValueSource
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.