|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.DocIdSetIterator
public abstract class DocIdSetIterator
This abstract class defines methods to iterate over a set of non-decreasing doc ids.
Constructor Summary | |
---|---|
DocIdSetIterator()
|
Method Summary | |
---|---|
abstract int |
doc()
Returns the current document number. |
abstract boolean |
next()
Moves to the next docId in the set. |
abstract boolean |
skipTo(int target)
Skips entries to the first beyond the current whose document number is greater than or equal to target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocIdSetIterator()
Method Detail |
---|
public abstract int doc()
This is invalid until next()
is called for the first time.
public abstract boolean next() throws IOException
IOException
public abstract boolean skipTo(int target) throws IOException
Returns true iff there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Some implementations are considerably more efficient than that.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |