Package org.elasticsearch.script
Interface FieldValues<T>
- All Known Implementing Classes:
Converters.DelegatingFieldValues
,IpFieldMapper.IpFieldType.IpScriptDocValues
,IpScriptFieldData.IpScriptDocValues
,ScriptDocValues
,ScriptDocValues.Booleans
,ScriptDocValues.BytesRefs
,ScriptDocValues.Dates
,ScriptDocValues.Doubles
,ScriptDocValues.Geometry
,ScriptDocValues.GeoPoints
,ScriptDocValues.Longs
,ScriptDocValues.Strings
public interface FieldValues<T>
The underlying contents of a scripting Field. Implementations include
ScriptDocValues
, _source
, runtime fields, or
the converted form of the these values from a Converter
.-
Method Details
-
isEmpty
boolean isEmpty()Are there any values? -
size
int size()How many values? -
getValues
All underlying values. Note this boxes primitives -
getNonPrimitiveValue
T getNonPrimitiveValue()The first value as a subclass ofObject
. Boxes primitives -
getLongValue
long getLongValue()The first value as a primitive long. For performance reasons, implementations should avoid intermediate boxings if possible -
getDoubleValue
double getDoubleValue()The first value as a primitive double. For performance reasons, implementations should avoid intermediate boxings if possible
-