Example usage for Java org.apache.lucene.search DocIdSetIterator fields, constructors, methods, implement or subclass
The text is from its open source code.
int | NO_MORE_DOCS When returned by #nextDoc() , #advance(int) and #docID() it means there are no more docs in the iterator. |
int | advance(int target) Advances to the first beyond the current whose document number is greater than or equal to target, and returns the document number itself. |
DocIdSetIterator | all(int maxDoc) A DocIdSetIterator that matches all documents up to maxDoc - 1 . |
long | cost() Returns the estimated cost of this DocIdSetIterator . |
int | docID() Returns the following:
|
DocIdSetIterator | empty() An empty DocIdSetIterator instance |
int | nextDoc() Advances to the next document in the set and returns the doc it is currently on, or #NO_MORE_DOCS if there are no more docs in the set. NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior. |