7 #ifndef DOCIDSETITERATOR_H
8 #define DOCIDSETITERATOR_H
26 static const int32_t NO_MORE_DOCS;
35 virtual int32_t docID() = 0;
42 virtual int32_t nextDoc() = 0;
70 virtual int32_t advance(int32_t target) = 0;
This abstract class defines methods to iterate over a set of non-decreasing doc ids. Note that this class assumes it iterates on doc Ids, and therefore NO_MORE_DOCS is set to { NO_MORE_DOCS} in order to be used as a sentinel object. Implementations of this class are expected to consider INT_MAX as an invalid value.
Definition: DocIdSetIterator.h:17
Base class for all Lucene classes.
Definition: LuceneObject.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12