Class SortingNumericDocValues

  • Direct Known Subclasses:
    ScriptLongValues


    public abstract class SortingNumericDocValues
    extends org.apache.lucene.index.SortedNumericDocValues
    Base class for building SortedNumericDocValues instances based on unsorted content.
    • Field Summary

      Fields

      Modifier and Type Field and Description
      protected long[] values
       
    • Method Summary

      Modifier and Type Method and Description
      int count()
       
      protected void resize(int newSize)
      Set the count() and ensure that the values array can store at least that many entries.
      protected void sort()
      Sort values that are stored between offsets 0 and count of values.
      long valueAt(int index)
       
      • Methods inherited from class org.apache.lucene.index.SortedNumericDocValues

        setDocument
    • Field Detail

      • values

        protected long[] values
    • Constructor Detail

      • SortingNumericDocValues

        protected SortingNumericDocValues()
    • Method Detail

      • resize

        protected final void resize(int newSize)
        Set the count() and ensure that the values array can store at least that many entries.
      • sort

        protected final void sort()
        Sort values that are stored between offsets 0 and count of values.
      • count

        public final int count()
      • valueAt

        public final long valueAt(int index)