abstract class FilteringIntervalIterator extends ConjunctionIntervalIterator
| Modifier and Type | Field and Description |
|---|---|
(package private) IntervalIterator |
a |
(package private) IntervalIterator |
b |
(package private) boolean |
bpos |
approximation, cost, subIteratorsNO_MORE_INTERVALSNO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
FilteringIntervalIterator(IntervalIterator a,
IntervalIterator b) |
| Modifier and Type | Method and Description |
|---|---|
int |
end()
The end of the current interval
Returns -1 if
IntervalIterator.nextInterval() has not yet been called and IntervalIterator.NO_MORE_INTERVALS
once the iterator is exhausted. |
int |
gaps()
The number of gaps within the current interval
Note that this returns the number of gaps between the immediate sub-intervals
of this interval, and does not include the gaps inside those sub-intervals.
|
protected void |
reset() |
int |
start()
The start of the current interval
Returns -1 if
IntervalIterator.nextInterval() has not yet been called and IntervalIterator.NO_MORE_INTERVALS
once the iterator is exhausted. |
advance, cost, docID, matchCost, nextDocnextInterval, toStringall, empty, range, slowAdvancefinal IntervalIterator a
final IntervalIterator b
boolean bpos
protected FilteringIntervalIterator(IntervalIterator a, IntervalIterator b)
public int start()
IntervalIteratorIntervalIterator.nextInterval() has not yet been called and IntervalIterator.NO_MORE_INTERVALS
once the iterator is exhausted.start in class IntervalIteratorpublic int end()
IntervalIteratorIntervalIterator.nextInterval() has not yet been called and IntervalIterator.NO_MORE_INTERVALS
once the iterator is exhausted.end in class IntervalIteratorpublic int gaps()
IntervalIteratorIntervalIterator.nextInterval(), or after it has returned
IntervalIterator.NO_MORE_INTERVALSgaps in class IntervalIteratorprotected void reset()
throws java.io.IOException
reset in class ConjunctionIntervalIteratorjava.io.IOException