public static final class ScriptDocValues.GeoPoints extends ScriptDocValues<GeoPoint>
ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings
Constructor and Description |
---|
GeoPoints(MultiGeoPointValues values) |
Modifier and Type | Method and Description |
---|---|
double |
arcDistance(double lat,
double lon) |
double |
arcDistanceWithDefault(double lat,
double lon,
double defaultValue) |
double |
geohashDistance(java.lang.String geohash) |
double |
geohashDistanceWithDefault(java.lang.String geohash,
double defaultValue) |
GeoPoint |
get(int index) |
double |
getLat() |
double[] |
getLats() |
double |
getLon() |
double[] |
getLons() |
GeoPoint |
getValue() |
double |
planeDistance(double lat,
double lon) |
double |
planeDistanceWithDefault(double lat,
double lon,
double defaultValue) |
void |
setNextDocId(int docId)
Set the current doc ID.
|
int |
size() |
add, getValues, remove, replaceAll, set, sort
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public GeoPoints(MultiGeoPointValues values)
public void setNextDocId(int docId)
ScriptDocValues
setNextDocId
in class ScriptDocValues<GeoPoint>
public GeoPoint getValue()
public double getLat()
public double[] getLats()
public double[] getLons()
public double getLon()
public GeoPoint get(int index)
public int size()
public double arcDistance(double lat, double lon)
public double arcDistanceWithDefault(double lat, double lon, double defaultValue)
public double planeDistance(double lat, double lon)
public double planeDistanceWithDefault(double lat, double lon, double defaultValue)
public double geohashDistance(java.lang.String geohash)
public double geohashDistanceWithDefault(java.lang.String geohash, double defaultValue)