public class GeohashFunction extends ValueSource
Ex: geohash(lat, lon)
Note, there is no reciprocal function for this.
| Modifier and Type | Field and Description |
|---|---|
protected ValueSource |
lat |
protected ValueSource |
lon |
| Constructor and Description |
|---|
GeohashFunction(ValueSource lat,
ValueSource lon) |
| Modifier and Type | Method and Description |
|---|---|
String |
description() |
boolean |
equals(Object o) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
int |
hashCode() |
protected String |
name() |
asDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, getSortField, newContext, toStringprotected ValueSource lat
protected ValueSource lon
public GeohashFunction(ValueSource lat, ValueSource lon)
protected String name()
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues in class ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class ValueSourcepublic int hashCode()
hashCode in class ValueSourcepublic String description()
description in class ValueSourceCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.