IpFieldMapper.IpFieldType.IpScriptDocValues, ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Stringspublic 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 | 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 | Description |
|---|---|
ScriptDocValues() |
| Modifier and Type | Method | 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) |
addAll, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListpublic abstract void setNextDocId(int docId)
throws java.io.IOException
java.io.IOExceptionpublic final java.util.List<T> getValues()
public final boolean remove(java.lang.Object o)
remove in class java.util.AbstractCollection<T>public final void replaceAll(java.util.function.UnaryOperator<T> operator)
public final void sort(java.util.Comparator<? super T> c)