public abstract class ScriptDocValues<T>
extends java.util.AbstractList<T>
getValue and a getValues that return
the relevant type that then can be used in scripts.
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.| Modifier and Type | Class and 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 and Description |
|---|
ScriptDocValues() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
java.util.List<T> |
getValues()
Return a copy of the list of the values for the current document.
|
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) |
add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic abstract void setNextDocId(int docId)
throws java.io.IOException
java.io.IOExceptionpublic final java.util.List<T> getValues()
public final void add(int index,
T element)
public final boolean remove(java.lang.Object o)
public final void replaceAll(java.util.function.UnaryOperator<T> operator)
public final void sort(java.util.Comparator<? super T> c)