Class IpScriptFieldData.IpScriptDocValues
<E>
<T>
org.elasticsearch.index.fielddata.ScriptDocValues<T>
org.elasticsearch.index.fielddata.ScriptDocValues.Strings
org.elasticsearch.index.fielddata.IpScriptFieldData.IpScriptDocValues
- All Implemented Interfaces:
<>
,<>
,<>
- Enclosing class:
- IpScriptFieldData
Doc values implementation for ips. We can't share
IpFieldMapper.IpFieldType.IpScriptDocValues
because it is based
on global ordinals and we don't have those.-
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
Modifier and TypeFieldDescriptionprotected int
protected org.apache.lucene.util.BytesRefBuilder[]
Fields inherited from class java.util.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected
bytesToString(org.apache.lucene.util.BytesRef bytes)
Convert the stored bytes to a String.protected void
resize(int newSize)
Set the and ensure that thevalues
array can store at least that many entries.void
setNextDocId(int docId)
Set the current doc ID.int
size()
Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValues.Strings
get, getValue
Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
add, remove, replaceAll, set, sort
Methods inherited from class java.util.
, , , , , , , , , , , ,
Methods inherited from class java.util.
, , , , , , , ,
Methods inherited from class java.lang.
, , , , , , ,
Methods inherited from interface java.util.
, , ,
Methods inherited from interface java.lang.
Methods inherited from interface java.util.
, , , , , , , ,
-
Field Details
-
values
protected org.apache.lucene.util.BytesRefBuilder[] values -
count
protected int count
-
-
Constructor Details
-
IpScriptDocValues
-
-
Method Details
-
bytesToString
protected bytesToString(org.apache.lucene.util.BytesRef bytes)Description copied from class:ScriptDocValues.Strings
Convert the stored bytes to a String.- Overrides:
bytesToString
in classScriptDocValues.Strings
-
setNextDocId
public void setNextDocId(int docId) throwsDescription copied from class:ScriptDocValues
Set the current doc ID.- Specified by:
setNextDocId
in classScriptDocValues<T>
- Throws:
-
resize
protected void resize(int newSize)Set the and ensure that thevalues
array can store at least that many entries. -
size
public int size()- Specified by:
in interface
<T>
- Specified by:
in interface
<T>
- Specified by:
in class
<T>
-