public static class ScriptDocValues.GeoPoints extends java.util.AbstractList<GeoPoint> implements ScriptDocValues<GeoPoint>
ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, 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() |
java.util.List<GeoPoint> |
getValues()
Return a copy of the list of the values for the current document.
|
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, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, 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 interface ScriptDocValues<GeoPoint>
public GeoPoint getValue()
public double getLat()
public double[] getLats()
public double[] getLons()
public double getLon()
public java.util.List<GeoPoint> getValues()
ScriptDocValues
getValues
in interface ScriptDocValues<GeoPoint>
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)