42 return current_termfreq;
51 const char* p_end = data.data() + data.size();
55 current_term.resize(
size_t(
static_cast<unsigned char>(*
p++)));
70 while (current_term <
term) {
TermList * skip_to(std::string_view term)
Skip forward to the specified term.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
TermList * next()
Advance the current position to the next term in the termlist.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
Abstract base class for termlists.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
void unpack_throw_serialisation_error(const char *p)
Throw appropriate SerialisationError.
Pack types into strings and unpack them again.
bool unpack_string_append(const char **p, const char *end, std::string &result)
Decode a std::string from a string and append.
bool unpack_uint(const char **p, const char *end, U *result)
Decode an unsigned integer from a string.
Iterate all terms in a remote database.