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, toString
protected 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 ValueSource
IOException
public boolean equals(Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource
public String description()
description
in class ValueSource
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.