Package org.elasticsearch.script.field
Class GeoPointDocValuesField
java.lang.Object
org.elasticsearch.script.field.GeoPointDocValuesField
- All Implemented Interfaces:
Iterable<GeoPoint>
,ScriptDocValues.GeometrySupplier<GeoPoint>
,ScriptDocValues.Supplier<GeoPoint>
,DocValuesField<GeoPoint>
,Field<GeoPoint>
public class GeoPointDocValuesField
extends Object
implements DocValuesField<GeoPoint>, ScriptDocValues.GeometrySupplier<GeoPoint>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInternal
(int index) getName()
Returns the name of this field.Returns aScriptDocValues
of the appropriate type for this field.boolean
isEmpty()
Returnstrue
if this field has no values, otherwisefalse
.iterator()
void
setNextDocId
(int docId) Set the current document ID.int
size()
Returns the number of values this field has.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
-
Field Details
-
input
-
name
-
values
-
count
protected int count
-
-
Constructor Details
-
GeoPointDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesField
Set the current document ID.- Specified by:
setNextDocId
in interfaceDocValuesField<GeoPoint>
- Specified by:
setNextDocId
in interfaceScriptDocValues.Supplier<GeoPoint>
- Throws:
IOException
-
getScriptDocValues
Description copied from interface:DocValuesField
Returns aScriptDocValues
of the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedoc
variable.- Specified by:
getScriptDocValues
in interfaceDocValuesField<GeoPoint>
-
getInternal
- Specified by:
getInternal
in interfaceScriptDocValues.Supplier<GeoPoint>
-
getInternalCentroid
- Specified by:
getInternalCentroid
in interfaceScriptDocValues.GeometrySupplier<GeoPoint>
-
getInternalBoundingBox
- Specified by:
getInternalBoundingBox
in interfaceScriptDocValues.GeometrySupplier<GeoPoint>
-
getName
Description copied from interface:Field
Returns the name of this field. -
isEmpty
public boolean isEmpty()Description copied from interface:Field
Returnstrue
if this field has no values, otherwisefalse
. -
size
public int size()Description copied from interface:Field
Returns the number of values this field has. -
get
-
get
-
iterator
-