22 #ifndef XAPIAN_HGUARD_CHERT_POSITIONLIST_H 23 #define XAPIAN_HGUARD_CHERT_POSITIONLIST_H 62 void set_positionlist(
Xapian::docid did,
const string & tname,
65 bool check_for_update);
74 const string & term)
const;
106 const string & tname) {
107 (void)read_data(table, did, tname);
115 const string & tname);
static string make_key(Xapian::docid did, const string &term)
Xapian::termcount size
Number of entries.
A position list in a chert database.
ChertPositionList(const ChertTable *table, Xapian::docid did, const string &tname)
Construct and initialise with data.
Class managing a Btree table in a Chert database.
Abstract base class for iterating term positions in a document.
Xapian::termpos last
Last entry.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
void C_pack_uint_preserving_sort(std::string &s, U value)
Append an encoded unsigned integer to a string, preserving the sort order.
void delete_positionlist(Xapian::docid did, const string &tname)
Delete the position list for term tname in document did.
Xapian::termpos current_pos
Current entry.
Read a stream created by BitWriter.
Class for iterating over term positions.
Classes to encode/decode a bitstream.
ChertPositionListTable(const string &dbdir, bool readonly)
Create a new ChertPositionListTable object.
bool have_started
Have we started iterating yet?
ChertPositionList()
Default constructor.
Subclass of ChertTable for deriving lazy tables from.
Pack types into strings and unpack them again.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
BitReader rd
Interpolative decoder.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for iterating term positions in a document.
string make_key(Xapian::docid did)