public abstract class IntervalFilter extends IntervalIterator
IntervalIterator and passes through those intervals that match the accept() function| Modifier and Type | Field and Description |
|---|---|
protected IntervalIterator |
in |
NO_MORE_INTERVALSNO_MORE_DOCS| Constructor and Description |
|---|
IntervalFilter(IntervalIterator in)
Create a new filter
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept() |
int |
advance(int target) |
long |
cost() |
int |
docID() |
int |
end()
The end of the current interval
Returns -1 if
IntervalIterator.nextInterval() has not yet been called |
float |
matchCost()
An indication of the average cost of iterating over all intervals in a document
|
int |
nextDoc() |
int |
nextInterval()
Advance the iterator to the next interval
|
int |
start()
The start of the current interval
Returns -1 if
IntervalIterator.nextInterval() has not yet been called |
toStringall, empty, range, slowAdvanceprotected final IntervalIterator in
public IntervalFilter(IntervalIterator in)
public int docID()
docID in class DocIdSetIteratorpublic int nextDoc()
throws IOException
nextDoc in class DocIdSetIteratorIOExceptionpublic int advance(int target)
throws IOException
advance in class DocIdSetIteratorIOExceptionpublic long cost()
cost in class DocIdSetIteratorpublic int start()
IntervalIteratorIntervalIterator.nextInterval() has not yet been calledstart in class IntervalIteratorpublic int end()
IntervalIteratorIntervalIterator.nextInterval() has not yet been calledend in class IntervalIteratorpublic float matchCost()
IntervalIteratormatchCost in class IntervalIteratorTwoPhaseIterator.matchCost()protected abstract boolean accept()
true if the wrapped iterator's interval should be passed onpublic final int nextInterval()
throws IOException
IntervalIteratornextInterval in class IntervalIteratorIntervalIterator.NO_MORE_INTERVALS if
there are no more intervals on the current documentIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.