33 LOGCALL_VOID(DB,
"ChertAllTermsList::read_termfreq", NO_ARGS);
56 LOGCALL(DB,
string,
"ChertAllTermsList::get_termname", NO_ARGS);
110 if (nul == string::npos) {
127 if (p == pend)
break;
183 LOGCALL(DB,
bool,
"ChertAllTermsList::at_end", NO_ARGS);
bool at_end() const
True if we're off the end of the list.
void read_termfreq() const
Read and cache the term frequency.
Xapian::doccount termfreq
The term frequency of the term at the current position.
std::string current_term
The termname at the current position.
bool next()
Advance to the next key.
TermList * next()
Advance to the next term in the list.
std::string prefix
The prefix to restrict the terms to.
#define LOGCALL_DTOR(CATEGORY, CLASS)
void to_end()
Set the cursor to be off the end of the table.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Abstract base class for termlists.
~ChertAllTermsList()
Destructor.
ChertPostListTable postlist_table
Table storing posting lists.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
bool find_entry_ge(const string &key)
Position the cursor on the lowest entry with key >= key.
string current_tag
Current tag pointed to by cursor.
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.
bool unpack_string_preserving_sort(const char **p, const char *end, std::string &result)
Decode a "sort preserved" std::string from a string.
bool startswith(const std::string &s, char pfx)
ChertCursor * cursor_get() const
Get a cursor for reading from the table.
DatabaseCorruptError indicates database corruption was detected.
std::string pack_chert_postlist_key(const std::string &term)
ChertCursor * cursor
A cursor which runs through the postlist table reading termnames from the keys.
bool after_end() const
Determine whether cursor is off the end of table.
string current_key
Current key pointed to by cursor.
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.
bool read_tag(bool keep_compressed=false)
Read the tag from the table and store it in current_tag.
Pack types into strings and unpack them again.
static void read_number_of_entries(const char **posptr, const char *end, Xapian::doccount *number_of_entries_ptr, Xapian::termcount *collection_freq_ptr)
Read the number of entries and the collection frequency.
Various handy helpers which std::string really should provide.
std::string get_termname() const
Returns the current termname.
A termlist containing all terms in a chert database.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)