public abstract class DocIdSetIterator extends Object
Constructor and Description |
---|
DocIdSetIterator() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.