21 #ifndef XAPIAN_INCLUDED_GLASS_ALLTERMSLIST_H
22 #define XAPIAN_INCLUDED_GLASS_ALLTERMSLIST_H
28 #include <string_view>
62 std::string_view prefix_)
Abstract base class for iterating all terms in a database.
Abstract base class for iterating all terms in a database.
void operator=(const GlassAllTermsList &)
Assignment is not allowed.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
GlassAllTermsList(const GlassAllTermsList &)
Copying is not allowed.
TermList * next()
Advance to the next term in the list.
TermList * skip_to(std::string_view tname)
Advance to the first term which is >= tname.
GlassCursor * cursor
A cursor which runs through the postlist table reading termnames from the keys.
void read_termfreq() const
Read and cache the term frequency.
Xapian::Internal::intrusive_ptr< const GlassDatabase > database
Keep a reference to our database to stop it being deleted.
GlassAllTermsList(Xapian::Internal::intrusive_ptr< const GlassDatabase > database_, std::string_view prefix_)
~GlassAllTermsList()
Destructor.
std::string prefix
The prefix to restrict the terms to.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::doccount termfreq
The term frequency of the term at the current position.
A cursor pointing to a position in a Btree table, for reading several entries in order,...
Abstract base class for termlists.
C++ class definition for glass database.
Postlists in glass databases.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.