nextInterval

abstract fun nextInterval(): Int

Advance the iterator to the next interval

Should not be called after [DocIdSetIterator.NO_MORE_DOCS] is returned by [DocIdSetIterator.nextDoc] or [DocIdSetIterator.advance]. If that's the case in some existing code, please consider opening an issue. However, after [IntervalIterator.NO_MORE_INTERVALS] is returned by this method, it might be called again.

Return

the start of the next interval, or IntervalIterator.NO_MORE_INTERVALS if there are no more intervals on the current document