LUCENE-2736: clarify DISI.advance()'s javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1104167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2011-05-17 11:36:30 +00:00
parent 801d63d369
commit 381461d3c9

View File

@ -61,9 +61,10 @@ public abstract class DocIdSetIterator {
public abstract int nextDoc() throws IOException; public abstract int nextDoc() throws IOException;
/** /**
* Advances to the first beyond the current whose document number is greater * Advances to the first beyond (see NOTE below) the current whose document
* than or equal to <i>target</i>. Returns the current document number or * number is greater than or equal to <i>target</i>. Returns the current
* {@link #NO_MORE_DOCS} if there are no more docs in the set. * document number or {@link #NO_MORE_DOCS} if there are no more docs in the
* set.
* <p> * <p>
* Behaves as if written: * Behaves as if written:
* *
@ -78,7 +79,7 @@ public abstract class DocIdSetIterator {
* *
* Some implementations are considerably more efficient than that. * Some implementations are considerably more efficient than that.
* <p> * <p>
* <b>NOTE:</b> when <code> target &le; current</code> implementations may opt * <b>NOTE:</b> when <code> target &le; current</code> implementations may opt
* not to advance beyond their current {@link #docID()}. * not to advance beyond their current {@link #docID()}.
* <p> * <p>
* <b>NOTE:</b> this method may be called with {@link #NO_MORE_DOCS} for * <b>NOTE:</b> this method may be called with {@link #NO_MORE_DOCS} for