Class GeohashFunction
- java.lang.Object
-
- org.apache.lucene.queries.function.ValueSource
-
- org.apache.solr.search.function.distance.GeohashFunction
-
public class GeohashFunction extends org.apache.lucene.queries.function.ValueSourceTakes in a latitude and longitude ValueSource and produces a GeoHash.Ex: geohash(lat, lon)
Note, there is no reciprocal function for this.
-
-
Constructor Summary
Constructors Constructor Description GeohashFunction(org.apache.lucene.queries.function.ValueSource lat, org.apache.lucene.queries.function.ValueSource lon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()booleanequals(Object o)org.apache.lucene.queries.function.FunctionValuesgetValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext)inthashCode()protected Stringname()
-
-
-
Method Detail
-
name
protected String name()
-
getValues
public org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
- Specified by:
getValuesin classorg.apache.lucene.queries.function.ValueSource- Throws:
IOException
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classorg.apache.lucene.queries.function.ValueSource
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.lucene.queries.function.ValueSource
-
description
public String description()
- Specified by:
descriptionin classorg.apache.lucene.queries.function.ValueSource
-
-