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.GeoPoints,ScriptDocValues.Longs,ScriptDocValues.Strings
public abstract class ScriptDocValues<T> extends AbstractList<T>
Script level doc values, the assumption is that any implementation will implement agetValuemethod. Implementations should not internally re-use objects for the values that they return as a singleScriptDocValuesinstance can be reused to return values form multiple documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScriptDocValues.Booleansstatic classScriptDocValues.BytesRefsstatic classScriptDocValues.Datesstatic classScriptDocValues.Doublesstatic classScriptDocValues.GeoPointsstatic classScriptDocValues.Longsstatic classScriptDocValues.Strings
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ScriptDocValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanremove(Object o)voidreplaceAll(UnaryOperator<T> operator)Tset(int index, T element)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, 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
-
-
-
-
Method Detail
-
setNextDocId
public abstract void setNextDocId(int docId) throws IOExceptionSet the current doc ID.- Throws:
IOException
-
add
public final void add(int index, T element)
-
remove
public final boolean remove(Object o)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
replaceAll
public final void replaceAll(UnaryOperator<T> operator)
-
sort
public final void sort(Comparator<? super T> c)
-
-