Class ScriptDocValues.BytesRefs

<E>
<T>
org.elasticsearch.index.fielddata.ScriptDocValues<T>
org.elasticsearch.index.fielddata.ScriptDocValues.BytesRefs
All Implemented Interfaces:
<org.apache.lucene.util.BytesRef>, <org.apache.lucene.util.BytesRef>, <org.apache.lucene.util.BytesRef>
Enclosing class:
ScriptDocValues<T>

public static final class ScriptDocValues.BytesRefs extends ScriptDocValues<T>
  • Field Details

    • values

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

      protected int count
  • Constructor Details

  • Method Details

    • get

      public org.apache.lucene.util.BytesRef get(int index)
      Specified by:
       in interface <org.apache.lucene.util.BytesRef>
      Specified by:
       in class <org.apache.lucene.util.BytesRef>
    • getValue

      public org.apache.lucene.util.BytesRef getValue()
    • 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>