Module org.apache.lucene.queries
Class NotContainingIntervalsSource.NotContainingIterator
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.queries.intervals.IntervalIterator
-
- org.apache.lucene.queries.intervals.RelativeIterator
-
- org.apache.lucene.queries.intervals.NotContainingIntervalsSource.NotContainingIterator
-
- Enclosing class:
- NotContainingIntervalsSource
private static class NotContainingIntervalsSource.NotContainingIterator extends RelativeIterator
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queries.intervals.RelativeIterator
a, b, bpos
-
Fields inherited from class org.apache.lucene.queries.intervals.IntervalIterator
NO_MORE_INTERVALS
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NotContainingIterator(IntervalIterator minuend, IntervalIterator subtrahend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextInterval()
Advance the iterator to the next interval-
Methods inherited from class org.apache.lucene.queries.intervals.RelativeIterator
advance, cost, docID, end, gaps, matchCost, nextDoc, reset, start
-
Methods inherited from class org.apache.lucene.queries.intervals.IntervalIterator
toString, width
-
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
-
-
-
Constructor Detail
-
NotContainingIterator
private NotContainingIterator(IntervalIterator minuend, IntervalIterator subtrahend)
-
-
Method Detail
-
nextInterval
public int nextInterval() throws java.io.IOException
Description copied from class:IntervalIterator
Advance the iterator to the next intervalShould not be called after
DocIdSetIterator.NO_MORE_DOCS
is returned byDocIdSetIterator.nextDoc()
orDocIdSetIterator.advance(int)
. If that's the case in some existing code, please consider opening an issue. However, afterIntervalIterator.NO_MORE_INTERVALS
is returned by this method, it might be called again.- Specified by:
nextInterval
in classIntervalIterator
- Returns:
- the start of the next interval, or
IntervalIterator.NO_MORE_INTERVALS
if there are no more intervals on the current document - Throws:
java.io.IOException
-
-