|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectIterator
it.unimi.dsi.mg4j.search.IntervalIterators.FakeIterator
An iterator that throws an exception on all method calls, except for hasNext(),
which has a settable value.
The only purpose of this class is to instantiate "absolute value" iterators
such as IntervalIterators.TRUE and IntervalIterators.FALSE.
| Method Summary | |
int |
extent()
Returns an approximation of a lower bound for the length of an interval returned by this iterator. |
boolean |
hasNext()
|
Object |
next()
|
Interval |
nextInterval()
Returns the next interval in the sequence. |
void |
reset()
Resets the internal state of this iterator for a new document. |
String |
toString()
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectIterator |
remove, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
remove |
| Method Detail |
public boolean hasNext()
hasNext in interface Iteratorpublic Interval nextInterval()
IntervalIteratorA call to this method is equivalent to (Interval)next().
nextInterval in interface IntervalIteratorpublic void reset()
IntervalIteratorTo reduce object creation, interval iterators are usually created in a lazy
fashion by document iterator when they are needed. However, this implies that
every time the document iterator is moved, some internal state of the interval iterator must be reset
(e.g., because on the new document some of the component interval iterators are now
IntervalIterators.TRUE).
reset in interface IntervalIteratorpublic Object next()
next in interface Iteratorpublic int extent()
IntervalIterator
extent in interface IntervalIteratorpublic String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||