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 in) |
| 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) |
protected void |
resize(int newSize)
|
void |
setNextDocId(int docId)
Set the current doc ID.
|
int |
size() |
add, getValues, remove, replaceAll, set, sortadd, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic GeoPoints(MultiGeoPointValues in)
public void setNextDocId(int docId)
throws java.io.IOException
ScriptDocValuessetNextDocId in class ScriptDocValues<GeoPoint>java.io.IOExceptionprotected void resize(int newSize)
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)