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>
- 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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidreplaceAll(UnaryOperator<T> operator)abstract voidsetNextDocId(int docId)Set the current doc ID.voidsort(Comparator<? super T> c)Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ScriptDocValues
public ScriptDocValues()
-
-
Method Details
-
setNextDocId
Set the current doc ID.- Throws:
IOException
-
add
-
remove
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
replaceAll
-
set
-
sort
-