36 const string &prefix_)
37 : database(database_), cursor(cursor_), prefix(string(
"\x00\xc0", 2) + prefix_)
39 LOGCALL_CTOR(DB,
"ChertMetadataTermList", database_ | cursor_ | prefix_);
54 LOGCALL(DB,
string,
"ChertMetadataTermList::get_termname", NO_ARGS);
102 LOGCALL(DB,
bool,
"ChertMetadataTermList::at_end", NO_ARGS);
A cursor pointing to a position in a Btree table, for reading several entries in order, or finding approximate matches.
bool next()
Advance to the next key.
InvalidOperationError indicates the API was used in an invalid way.
#define LOGCALL_DTOR(CATEGORY, CLASS)
void to_end()
Set the cursor to be off the end of the table.
Abstract base class for termlists.
bool find_entry_ge(const string &key)
Position the cursor on the lowest entry with key >= key.
bool startswith(const std::string &s, char pfx)
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
bool after_end() const
Determine whether cursor is off the end of table.
string current_key
Current key pointed to by cursor.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various handy helpers which std::string really should provide.
void find_entry_lt(const string &key)
Position the cursor on the highest entry with key < key.
Various assertion macros.
A smart pointer that uses intrusive reference counting.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)