java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<GeoPoint>
org.elasticsearch.script.field.PointDocValuesField<GeoPoint>
org.elasticsearch.script.field.GeoPointDocValuesField
- All Implemented Interfaces:
Iterable<GeoPoint>
,ScriptDocValues.GeometrySupplier<GeoPoint,
,GeoPoint> ScriptDocValues.Supplier<GeoPoint>
,DocValuesScriptFieldFactory
,Field<GeoPoint>
,ScriptFieldFactory
-
Field Summary
Fields inherited from class org.elasticsearch.script.field.PointDocValuesField
boundingBox, centroid, count, input, name, values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
protected double
protected double
planeDistance
(double x1, double y1, GeoPoint point) protected GeoPoint
pointOf
(double x, double y) protected void
resetCentroidAndBounds
(GeoPoint point, GeoPoint topLeft, GeoPoint bottomRight) protected void
resetPointAt
(int i, GeoPoint point) Returns aScriptDocValues
of the appropriate type for this field.Methods inherited from class org.elasticsearch.script.field.PointDocValuesField
getInternal, getInternalBoundingBox, getInternalCentroid, getInternalLabelPosition, getName, isEmpty, iterator, setNextDocId, size
Methods inherited from class org.elasticsearch.script.field.AbstractScriptFieldFactory
toScriptField
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.script.field.ScriptFieldFactory
toScriptField
-
Constructor Details
-
GeoPointDocValuesField
-
-
Method Details
-
resetPointAt
- Specified by:
resetPointAt
in classPointDocValuesField<GeoPoint>
-
resetCentroidAndBounds
- Specified by:
resetCentroidAndBounds
in classPointDocValuesField<GeoPoint>
-
getXFrom
- Specified by:
getXFrom
in classPointDocValuesField<GeoPoint>
-
getYFrom
- Specified by:
getYFrom
in classPointDocValuesField<GeoPoint>
-
pointOf
- Specified by:
pointOf
in classPointDocValuesField<GeoPoint>
-
planeDistance
- Specified by:
planeDistance
in classPointDocValuesField<GeoPoint>
-
get
- Overrides:
get
in classPointDocValuesField<GeoPoint>
-
get
- Overrides:
get
in classPointDocValuesField<GeoPoint>
-
toScriptDocValues
Description copied from interface:DocValuesScriptFieldFactory
Returns aScriptDocValues
of the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedoc
variable.
-