Class LongMultiValues


  • public abstract class LongMultiValues
    extends Object
    A per-document, unordered sequence of long values.
    • Constructor Detail

      • LongMultiValues

        protected LongMultiValues()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • advanceExact

        public abstract boolean advanceExact​(int doc)
                                      throws IOException
        Advance this instance to the given document id
        Returns:
        true if there is a value for this document
        Throws:
        IOException
      • hasNextValue

        public abstract boolean hasNextValue()
                                      throws IOException
        Returns:
        true if there is a next value for this document, i.e. if nextValue() can be called.
        Throws:
        IOException
      • nextValue

        public abstract long nextValue()
                                throws IOException
        Returns:
        The next value for the current document. Can only be called after hasNextValue() returned true.
        Throws:
        IOException
      • fromDocValues

        public static LongMultiValues fromDocValues​(org.apache.lucene.index.SortedNumericDocValues docValues)