21 #ifndef XAPIAN_INCLUDED_CHERT_TERMLISTTABLE_H
22 #define XAPIAN_INCLUDED_CHERT_TERMLISTTABLE_H
53 Z_DEFAULT_STRATEGY) { }
Subclass of ChertTable for deriving lazy tables from.
unsigned int chert_doclen_t
An integer type for storing the length of a document - ie, the sum of the wdfs of the terms in the do...
bool del(const std::string &key)
Delete an entry from the table.
void create_and_open(unsigned int blocksize)
Create a new empty btree structure on disk and open it at the initial revision.
void set_termlist(Xapian::docid did, const Xapian::Document &doc, chert_doclen_t doclen)
Set the termlist data for document did.
void create_and_open(unsigned int blocksize)
Non-lazy override of ChertLazyTable::create_and_open().
ChertTermListTable(const std::string &dbdir, bool readonly)
Create a new ChertTermListTable object.
void delete_termlist(Xapian::docid did)
Delete the termlist data for document did.
static std::string make_key(Xapian::docid did)
A handle representing a document in a Xapian database.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Pack types into strings and unpack them again.
void C_pack_uint_preserving_sort(std::string &s, U value)
Append an encoded unsigned integer to a string, preserving the sort order.