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