Class SortedNumericDoubleDocValues

  • Direct Known Subclasses:
    GeoPointDistanceDocValues

    public abstract class SortedNumericDoubleDocValues
    extends org.apache.lucene.search.DocIdSetIterator
    Clone of SortedNumericDocValues for double values.

    Copied and adapted from org.elasticsearch.index.fielddata.SortedNumericDoubleValues class of Elasticsearch project.

    • Constructor Detail

      • SortedNumericDoubleDocValues

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

      • advanceExact

        public abstract boolean advanceExact​(int target)
                                      throws IOException
        Advance the iterator to exactly target and return whether target has a value. target must be greater than or equal to the current doc ID and must be a valid doc ID, ie. ≥ 0 and < maxDoc.
        Parameters:
        target - the target
        Returns:
        the next value
        Throws:
        IOException
      • nextValue

        public abstract double nextValue()
                                  throws IOException
        Iterates to the next value in the current document. Do not call this more than docValueCount() times for the document.
        Returns:
        next value
        Throws:
        IOException
      • docValueCount

        public abstract int docValueCount()
        Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method after advanceExact(int) returned false.
        Returns:
        value count