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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.script.FieldValues
getNonPrimitiveValue, getValues
-
Field Details
-
values
-
-
Constructor Details
-
DelegatingFieldValues
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:FieldValuesAre there any values?- Specified by:
isEmptyin interfaceFieldValues<T>
-
size
public int size()Description copied from interface:FieldValuesHow many values?- Specified by:
sizein interfaceFieldValues<T>
-
getLongValue
public long getLongValue()Description copied from interface:FieldValuesThe first value as a primitive long. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getLongValuein interfaceFieldValues<T>
-
getDoubleValue
public double getDoubleValue()Description copied from interface:FieldValuesThe first value as a primitive double. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getDoubleValuein interfaceFieldValues<T>
-