35 #include <string_view>
38 using namespace std::string_literals;
45 : database(database_),
47 prefix(
"\x00\xc0"s.append(prefix_))
49 LOGCALL_CTOR(DB,
"GlassMetadataTermList", database_ | cursor_ | prefix_);
A cursor pointing to a position in a Btree table, for reading several entries in order,...
string current_key
Current key pointed to by cursor.
bool after_end() const
Determine whether cursor is off the end of table.
bool next()
Advance to the next key.
bool find_entry_ge(std::string_view key)
Position the cursor on the lowest entry with key >= key.
void find_entry_lt(const string &key)
Position the cursor on the highest entry with key < key.
A smart pointer that uses intrusive reference counting.
InvalidOperationError indicates the API was used in an invalid way.
Abstract base class for termlists.
std::string current_term
The current term.
Virtual base class for Database internals.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
#define LOGCALL_DTOR(CATEGORY, CLASS)
Hierarchy of classes which Xapian can throw as exceptions.
Interface to Btree cursors.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
Various handy string-related helpers.
bool startswith(std::string_view s, char pfx)