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

public static class IpScriptFieldData.IpScriptDocValues extends ScriptDocValues.Strings
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.
  • Field Details

    • values

      protected org.apache.lucene.util.BytesRefBuilder[] values
    • count

      protected int count
  • Constructor Details

  • 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 class ScriptDocValues.Strings
    • setNextDocId

      public void setNextDocId(int docId) throws
      Description copied from class: ScriptDocValues
      Set the current doc ID.
      Specified by:
      setNextDocId in class ScriptDocValues<T>
      Throws:
    • resize

      protected void resize(int newSize)
      Set the and ensure that the values 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>