Class IntervalIterator

    • Field Detail

      • NO_MORE_INTERVALS

        public static final int NO_MORE_INTERVALS
        When returned from nextInterval(), indicates that there are no more matching intervals on the current document
        See Also:
        Constant Field Values
    • Constructor Detail

      • IntervalIterator

        public IntervalIterator()
    • Method Detail

      • start

        public abstract int start()
        The start of the current interval Returns -1 if nextInterval() has not yet been called
      • end

        public abstract int end()
        The end of the current interval Returns -1 if nextInterval() has not yet been called
      • nextInterval

        public abstract int nextInterval()
                                  throws IOException
        Advance the iterator to the next interval
        Returns:
        the start of the next interval, or NO_MORE_INTERVALS if there are no more intervals on the current document
        Throws:
        IOException
      • matchCost

        public abstract float matchCost()
        An indication of the average cost of iterating over all intervals in a document
        See Also:
        TwoPhaseIterator.matchCost()