Class ScriptDocValues<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.elasticsearch.index.fielddata.ScriptDocValues<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,FieldValues<T>
- Direct Known Subclasses:
IpFieldMapper.IpFieldType.IpScriptDocValues
,ScriptDocValues.Booleans
,ScriptDocValues.BytesRefs
,ScriptDocValues.Dates
,ScriptDocValues.Doubles
,ScriptDocValues.Geometry
,ScriptDocValues.Longs
,ScriptDocValues.Strings
Script level doc values, the assumption is that any implementation will
implement a
getValue
method.
Implementations should not internally re-use objects for the values that they
return as a single ScriptDocValues
instance can be reused to return
values form multiple documents.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
The first value as a primitive double.long
The first value as a primitive long.The first value as a subclass ofObject
.All underlying values.boolean
void
replaceAll(UnaryOperator<T> operator)
abstract void
setNextDocId(int docId)
Set the current doc ID.void
sort(Comparator<? super T> c)
protected void
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.elasticsearch.script.FieldValues
isEmpty, size
-
Constructor Details
-
ScriptDocValues
public ScriptDocValues()
-
-
Method Details
-
setNextDocId
Set the current doc ID.- Throws:
IOException
-
add
-
remove
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classAbstractCollection<T>
-
replaceAll
- Specified by:
replaceAll
in interfaceList<T>
-
set
-
sort
-
toField
-
getValues
Description copied from interface:FieldValues
All underlying values. Note this boxes primitives- Specified by:
getValues
in interfaceFieldValues<T>
-
getNonPrimitiveValue
Description copied from interface:FieldValues
The first value as a subclass ofObject
. Boxes primitives- Specified by:
getNonPrimitiveValue
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>
-
throwIfEmpty
protected void throwIfEmpty()
-