45 LOGCALL(DB,
string,
"ChertRecordTable::get_record", did);
70 LOGCALL_VOID(DB,
"ChertRecordTable::replace_record", data | did);
77 LOGCALL_VOID(DB,
"ChertRecordTable::delete_record", did);
Records in chert databases.
chert_tablesize_t get_entry_count() const
Return a count of the number of entries in the table.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Convert types to std::string.
void replace_record(const string &data, Xapian::docid did)
Hierarchy of classes which Xapian can throw as exceptions.
bool readahead_key(const string &key) const
bool del(const std::string &key)
Delete an entry from the table.
void delete_record(Xapian::docid did)
Delete a record from the table.
unsigned long long chert_tablesize_t
A type used to store the number of entries in a table.
void C_pack_uint_preserving_sort(std::string &s, U value)
Append an encoded unsigned integer to a string, preserving the sort order.
void readahead_for_record(Xapian::docid did) const
bool get_exact_entry(const std::string &key, std::string &tag) const
Read an entry from the table, if and only if it is exactly that being asked for.
string str(int value)
Convert int to std::string.
Indicates an attempt to access a document not present in the database.
DatabaseCorruptError indicates database corruption was detected.
void add(const std::string &key, std::string tag, bool already_compressed=false)
Add a key/tag pair to the table, replacing any existing pair with the same key.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Pack types into strings and unpack them again.
string get_record(Xapian::docid did) const
Retrieve a document from the table.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Xapian::doccount get_doccount() const
Get the number of records in the table.
string make_key(Xapian::docid did)
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)