Class ScriptDocValues.GeoPoints
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.elasticsearch.index.fielddata.ScriptDocValues<T>
org.elasticsearch.index.fielddata.ScriptDocValues.Geometry<GeoPoint>
org.elasticsearch.index.fielddata.ScriptDocValues.GeoPoints
- Enclosing class:
- ScriptDocValues<T>
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.index.fielddata.ScriptDocValuesScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.Geometry<T>, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings
- 
Field SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublearcDistance(double lat, double lon)doublearcDistanceWithDefault(double lat, double lon, double defaultValue)doublegeohashDistance(String geohash)doublegeohashDistanceWithDefault(String geohash, double defaultValue)get(int index)Returns the bounding box of this geometryReturns the centroid of this geometryintReturns the dimensional type of this geometrydoublegetLat()double[]getLats()doublegetLon()double[]getLons()getValue()doubleplaneDistance(double lat, double lon)doubleplaneDistanceWithDefault(double lat, double lon, double defaultValue)protected voidresize(int newSize)Set thesize()and ensure that thevaluesarray can store at least that many entries.voidsetNextDocId(int docId)Set the current doc ID.intsize()Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValuesadd, remove, replaceAll, set, sortMethods inherited from class java.util.AbstractListadd, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, spliterator, toArray, toArray
- 
Constructor Details- 
GeoPoints
 
- 
- 
Method Details- 
setNextDocIdDescription copied from class:ScriptDocValuesSet the current doc ID.- Specified by:
- setNextDocIdin class- ScriptDocValues<GeoPoint>
- Throws:
- IOException
 
- 
resizeprotected void resize(int newSize)Set thesize()and ensure that thevaluesarray can store at least that many entries.
- 
getValue
- 
getLatpublic double getLat()
- 
getLatspublic double[] getLats()
- 
getLonspublic double[] getLons()
- 
getLonpublic double getLon()
- 
get
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<GeoPoint>
- Specified by:
- sizein interface- List<GeoPoint>
- Specified by:
- sizein class- AbstractCollection<GeoPoint>
 
- 
arcDistancepublic double arcDistance(double lat, double lon)
- 
arcDistanceWithDefaultpublic double arcDistanceWithDefault(double lat, double lon, double defaultValue)
- 
planeDistancepublic double planeDistance(double lat, double lon)
- 
planeDistanceWithDefaultpublic double planeDistanceWithDefault(double lat, double lon, double defaultValue)
- 
geohashDistance
- 
geohashDistanceWithDefault
- 
getDimensionalTypepublic int getDimensionalType()Description copied from class:ScriptDocValues.GeometryReturns the dimensional type of this geometry- Specified by:
- getDimensionalTypein class- ScriptDocValues.Geometry<GeoPoint>
 
- 
getCentroidDescription copied from class:ScriptDocValues.GeometryReturns the centroid of this geometry- Specified by:
- getCentroidin class- ScriptDocValues.Geometry<GeoPoint>
 
- 
getBoundingBoxDescription copied from class:ScriptDocValues.GeometryReturns the bounding box of this geometry- Specified by:
- getBoundingBoxin class- ScriptDocValues.Geometry<GeoPoint>
 
 
-