Class ScriptDocValues<T>

All Implemented Interfaces:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
Direct Known Subclasses:
IpFieldMapper.IpFieldType.IpScriptDocValues, ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings

public abstract class ScriptDocValues<T>
extends java.util.AbstractList<T>
Script level doc values, the assumption is that any implementation will implement a getValue method. 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.
  • Nested Class Summary

    Nested Classes 
    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  
  • Field Summary

    Fields inherited from class java.util.AbstractList

  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    void add​(int index, T element)  
    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)  

    Methods inherited from class java.util.AbstractList

    add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList

    Methods inherited from class java.util.AbstractCollection

    addAll, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable


    Methods inherited from interface java.util.List

    addAll, contains, containsAll, isEmpty, removeAll, retainAll, size, spliterator, toArray, toArray
  • Constructor Details

  • Method Details

    • setNextDocId

      public abstract void setNextDocId​(int docId) throws
      Set the current doc ID.
    • add

      public final void add​(int index, T element)
      Specified by:
      add in interface java.util.List<T>
      add in class java.util.AbstractList<T>
    • remove

      public final boolean remove​(java.lang.Object o)
      Specified by:
      remove in interface java.util.Collection<T>
      Specified by:
      remove in interface java.util.List<T>
      remove in class java.util.AbstractCollection<T>
    • replaceAll

      public final void replaceAll​(java.util.function.UnaryOperator<T> operator)
    • set

      public final T set​(int index, T element)
      Specified by:
      set in interface java.util.List<T>
      set in class java.util.AbstractList<T>
    • sort

      public final void sort​(java.util.Comparator<? super T> c)