21 #ifndef XAPIAN_INCLUDED_HONEY_POSTLISTTABLE_H
22 #define XAPIAN_INCLUDED_HONEY_POSTLISTTABLE_H
33 #include <string_view>
49 :
HoneyTable(
"postlist", dbdir +
"/postlist.", readonly) { }
52 :
HoneyTable(
"postlist", fd, offset_, readonly) { }
59 std::string_view
term,
60 bool need_read_pos)
const;
73 using namespace std::string_literals;
Database using honey backend.
Class for storing the changes in frequencies for a term.
void merge_changes(const std::string &term, const HoneyInverter::PostingChanges &changes)
void merge_doclen_changes(const std::map< Xapian::docid, Xapian::termcount > &changes)
void get_used_docid_range(Xapian::doccount doccount, Xapian::docid &first, Xapian::docid &last) const
HoneyPostListTable(const std::string &dbdir, bool readonly)
Create a new HoneyPostListTable object.
bool term_exists(std::string_view term) const
void get_freqs(std::string_view term, Xapian::doccount *termfreq_ptr, Xapian::termcount *collfreq_ptr) const
HoneyPostListTable(int fd, off_t offset_, bool readonly)
HoneyPostList * open_post_list(const HoneyDatabase *db, std::string_view term, bool need_read_pos) const
Xapian::termcount get_wdf_upper_bound(std::string_view term) const
std::string get_metadata(std::string_view key) const
PostList in a honey database.
bool get_exact_entry(std::string_view key, std::string *tag) const
bool key_exists(const std::string &key) const
Constants in the Xapian namespace.
HoneyInverter class which "inverts the file".
PostList in a honey database.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Pack types into strings and unpack them again.
std::string pack_honey_postlist_key(std::string_view term)