Class ScriptDocValues<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.elasticsearch.index.fielddata.ScriptDocValues<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.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 java.util.AbstractList<T>
Script level doc values, the assumption is that any implementation will implement agetValue
method. Implementations should not internally re-use objects for the values that they return as a singleScriptDocValues
instance can be reused to return values form multiple documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptDocValues.Booleans
static class
ScriptDocValues.BytesRefs
static class
ScriptDocValues.Dates
static class
ScriptDocValues.Doubles
static class
ScriptDocValues.GeoPoints
static class
ScriptDocValues.Longs
static class
ScriptDocValues.Strings
-
Constructor Summary
Constructors Constructor Description ScriptDocValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
remove(java.lang.Object o)
void
replaceAll(java.util.function.UnaryOperator<T> operator)
T
set(int index, T element)
abstract void
setNextDocId(int docId)
Set the current doc ID.void
sort(java.util.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
-
-
-
-
Method Detail
-
setNextDocId
public abstract void setNextDocId(int docId) throws java.io.IOException
Set the current doc ID.- Throws:
java.io.IOException
-
add
public final void add(int index, T element)
-
remove
public final boolean remove(java.lang.Object o)
-
replaceAll
public final void replaceAll(java.util.function.UnaryOperator<T> operator)
-
sort
public final void sort(java.util.Comparator<? super T> c)
-
-