21 #ifndef XAPIAN_INCLUDED_HONEY_ALLTERMSLIST_H
22 #define XAPIAN_INCLUDED_HONEY_ALLTERMSLIST_H
28 #include <string_view>
74 std::string_view prefix_)
Abstract base class for iterating all terms in a database.
Abstract base class for iterating all terms in a database.
HoneyCursor * 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.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
TermList * next()
Advance to the next term in the list.
void read_termfreq() const
Read and cache the term frequency.
Xapian::Internal::intrusive_ptr< const HoneyDatabase > database
Reference to our database.
HoneyAllTermsList & operator=(const HoneyAllTermsList &)=delete
Assignment is not allowed.
std::string prefix
The prefix to restrict the terms to.
HoneyAllTermsList(const HoneyDatabase *database_, std::string_view prefix_)
TermList * skip_to(std::string_view term)
Advance to the first term which is >= term.
Xapian::doccount termfreq
The term frequency of the term at the current position.
~HoneyAllTermsList()
Destructor.
HoneyAllTermsList(const HoneyAllTermsList &)=delete
Copying is not allowed.
Database using honey backend.
Abstract base class for termlists.
Database using honey backend.
PostList in a honey database.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.