22 #ifndef XAPIAN_INCLUDED_CHERT_ALLTERMSLIST_H 23 #define XAPIAN_INCLUDED_CHERT_ALLTERMSLIST_H 64 const std::string & prefix_)
65 : database(database_), cursor(NULL), prefix(prefix_), termfreq(0) { }
ChertAllTermsList(const ChertAllTermsList &)
Copying is not allowed.
bool at_end() const
True if we're off the end of the list.
void read_termfreq() const
Read and cache the term frequency.
A cursor pointing to a position in a Btree table, for reading several entries in order, or finding approximate matches.
Xapian::doccount termfreq
The term frequency of the term at the current position.
std::string current_term
The termname at the current position.
TermList * next()
Advance to the next term in the list.
std::string prefix
The prefix to restrict the terms to.
Abstract base class for termlists.
ChertAllTermsList(Xapian::Internal::intrusive_ptr< const ChertDatabase > database_, const std::string &prefix_)
~ChertAllTermsList()
Destructor.
Xapian::Internal::intrusive_ptr< const ChertDatabase > database
Keep a reference to our database to stop it being deleted.
TermList * skip_to(const std::string &tname)
Advance to the first term which is >= tname.
Abstract base class for iterating all terms in a database.
C++ class definition for chert database.
void operator=(const ChertAllTermsList &)
Assignment is not allowed.
ChertCursor * cursor
A cursor which runs through the postlist table reading termnames from the keys.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Postlists in chert databases.
Abstract base class for iterating all terms in a database.
std::string get_termname() const
Returns the current termname.