7#ifndef ABSTRACTALLTERMDOCS_H
8#define ABSTRACTALLTERMDOCS_H
32 virtual int32_t
doc();
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base class for enumerating all but deleted docs.
Definition AbstractAllTermDocs.h:18
virtual bool isDeleted(int32_t doc)=0
virtual int32_t doc()
Returns the current document number. This is invalid until next() is called for the first time.
virtual void close()
Frees associated resources.
virtual bool skipTo(int32_t target)
Skips entries to the first beyond the current whose document number is greater than or equal to targe...
virtual bool next()
Moves to the next pair in the enumeration. Returns true if there is such a next pair in the enumerati...
virtual void seek(const TermEnumPtr &termEnum)
Sets this to the data for the current term in a TermEnum. This may be optimized in some implementatio...
virtual int32_t read(Collection< int32_t > &docs, Collection< int32_t > &freqs)
Attempts to read multiple entries from the enumeration, up to length of docs. Document numbers are st...
virtual int32_t freq()
Returns the frequency of the term within the current document. This is invalid until next() is called...
virtual void seek(const TermPtr &term)
Sets this to the data for a term. The enumeration is reset to the start of the data for this term.
virtual ~AbstractAllTermDocs()
int32_t maxDoc
Definition AbstractAllTermDocs.h:26
int32_t _doc
Definition AbstractAllTermDocs.h:27
AbstractAllTermDocs(int32_t maxDoc)
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
TermDocs provides an interface for enumerating <document, frequency>; pairs for a term....
Definition TermDocs.h:19
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::shared_ptr< TermEnum > TermEnumPtr
Definition LuceneTypes.h:235