Class ScriptDocValues.Strings
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.elasticsearch.index.fielddata.ScriptDocValues<T>
org.elasticsearch.index.fielddata.ScriptDocValues.Strings
- All Implemented Interfaces:
Iterable<String>,Collection<String>,List<String>,FieldValues<String>
- Direct Known Subclasses:
IpScriptFieldData.IpScriptDocValues
- Enclosing class:
- ScriptDocValues<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.Geometry<T>, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.apache.lucene.util.BytesRefBuilder[]Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbytesToString(org.apache.lucene.util.BytesRef bytes)Convert the stored bytes to a String.get(int index)doubleThe first value as a primitive double.longThe first value as a primitive long.getValue()protected voidresize(int newSize)Set theFieldValues.size()and ensure that thevaluesarray can store at least that many entries.voidsetNextDocId(int docId)Set the current doc ID.intsize()How many values?Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
add, getNonPrimitiveValue, getValues, remove, replaceAll, set, sort, throwIfEmptyMethods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, 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, toArrayMethods inherited from interface org.elasticsearch.script.FieldValues
isEmptyMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, retainAll, spliterator, toArray, toArray
-
Field Details
-
values
protected org.apache.lucene.util.BytesRefBuilder[] values -
count
protected int count
-
-
Constructor Details
-
Strings
-
-
Method Details
-
get
-
bytesToString
Convert the stored bytes to a String. -
getValue
-
getLongValue
public long getLongValue()Description copied from interface:FieldValuesThe first value as a primitive long. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getLongValuein interfaceFieldValues<String>- Overrides:
getLongValuein classScriptDocValues<String>
-
getDoubleValue
public double getDoubleValue()Description copied from interface:FieldValuesThe first value as a primitive double. For performance reasons, implementations should avoid intermediate boxings if possible- Specified by:
getDoubleValuein interfaceFieldValues<String>- Overrides:
getDoubleValuein classScriptDocValues<String>
-
toField
- Specified by:
toFieldin classScriptDocValues<String>
-
setNextDocId
Description copied from class:ScriptDocValuesSet the current doc ID.- Specified by:
setNextDocIdin classScriptDocValues<T>- Throws:
IOException
-
resize
protected void resize(int newSize)Set theFieldValues.size()and ensure that thevaluesarray can store at least that many entries. -
size
public int size()Description copied from interface:FieldValuesHow many values?- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceFieldValues<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-