Package org.elasticsearch.script
Class Converters.DelegatingFieldValues<T,D>
java.lang.Object
org.elasticsearch.script.Converters.DelegatingFieldValues<T,D>
- All Implemented Interfaces:
FieldValues<T>
- Enclosing class:
- Converters
public abstract static class Converters.DelegatingFieldValues<T,D>
extends Object
implements FieldValues<T>
Helper for creating
Converter
classes which delegates all un-overridden methods to the underlying
FieldValues
.-
Field Details
-
values
-
-
Constructor Details
-
DelegatingFieldValues
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:FieldValues
Are there any values?- Specified by:
isEmpty
in interfaceFieldValues<T>
-
size
public int size()Description copied from interface:FieldValues
How many values?- Specified by:
size
in interfaceFieldValues<T>
-
getLongValue
public long getLongValue()Description copied from interface:FieldValues
The first value as a primitive long. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getLongValue
in interfaceFieldValues<T>
-
getDoubleValue
public double getDoubleValue()Description copied from interface:FieldValues
The first value as a primitive double. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getDoubleValue
in interfaceFieldValues<T>
-