22 #ifndef XAPIAN_INCLUDED_GLASS_SPELLINGWORDSLIST_H
23 #define XAPIAN_INCLUDED_GLASS_SPELLINGWORDSLIST_H
Abstract base class for iterating all terms in a 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,...
bool find_entry(const string &key)
Position the cursor on the highest entry with key <= key.
A backend designed for efficient indexing and retrieval, using compressed posting lists and a btree s...
void operator=(const GlassSpellingWordsList &)
Assignment is not allowed.
Xapian::Internal::intrusive_ptr< const GlassDatabase > database
Keep a reference to our database to stop it being deleted.
GlassSpellingWordsList(Xapian::Internal::intrusive_ptr< const GlassDatabase > database_, GlassCursor *cursor_)
void read_termfreq() const
Read and cache the term frequency.
~GlassSpellingWordsList()
Destructor.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::termcount termfreq
The term frequency of the term at the current position.
TermList * next()
Advance to the next term in the list.
GlassSpellingWordsList(const GlassSpellingWordsList &)
Copying is not allowed.
GlassCursor * cursor
A cursor which runs through the spelling table reading termnames from the keys.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
TermList * skip_to(std::string_view tname)
Advance to the first term which is >= tname.
Abstract base class for termlists.
Interface to Btree cursors.
Spelling correction data for a glass database.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.