public abstract class DocIdSetIterator
extends java.lang.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 java.io.IOException
java.io.IOException
public abstract boolean skipTo(int target) throws java.io.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.
java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.