|
xapian-core
2.0.0
|
#include <honey_postlisttable.h>
Inheritance diagram for HoneyPostListTable:
Collaboration diagram for HoneyPostListTable:Public Member Functions | |
| HoneyPostListTable (const std::string &dbdir, bool readonly) | |
| Create a new HoneyPostListTable object. More... | |
| HoneyPostListTable (int fd, off_t offset_, bool readonly) | |
| bool | term_exists (std::string_view term) const |
| HoneyPostList * | open_post_list (const HoneyDatabase *db, std::string_view term, bool need_read_pos) const |
| void | get_freqs (std::string_view term, Xapian::doccount *termfreq_ptr, Xapian::termcount *collfreq_ptr) const |
| void | get_used_docid_range (Xapian::doccount doccount, Xapian::docid &first, Xapian::docid &last) const |
| Xapian::termcount | get_wdf_upper_bound (std::string_view term) const |
| std::string | get_metadata (std::string_view key) const |
| void | merge_doclen_changes (const std::map< Xapian::docid, Xapian::termcount > &changes) |
| void | merge_changes (const std::string &term, const HoneyInverter::PostingChanges &changes) |
Public Member Functions inherited from HoneyTable | |
| HoneyTable (const char *, const std::string &path_, bool read_only_, bool lazy_=false) | |
| HoneyTable (const char *, int fd, off_t offset_, bool read_only_, bool lazy_=false) | |
| ~HoneyTable () | |
| bool | is_writable () const |
| int | get_flags () const |
| void | create_and_open (int flags_, const Honey::RootInfo &root_info) |
| void | open (int flags_, const Honey::RootInfo &root_info, honey_revision_number_t) |
| void | close (bool permanent) |
| const std::string & | get_path () const |
| void | add (std::string_view key, const char *val, size_t val_size, bool compressed=false) |
| void | add (std::string_view key, std::string_view val, bool compressed=false) |
| void | flush_db () |
| void | cancel (const Honey::RootInfo &, honey_revision_number_t) |
| void | commit (honey_revision_number_t, Honey::RootInfo *root_info) |
| bool | sync () |
| bool | empty () const |
| bool | get_exact_entry (std::string_view key, std::string &tag) const |
| bool | key_exists (const std::string &key) const |
| bool | del (const std::string &) |
| bool | readahead_key (const std::string &) const |
| bool | is_modified () const |
| HoneyCursor * | cursor_get () const |
| bool | exists () const |
| bool | is_open () const |
| honey_tablesize_t | get_entry_count () const |
| honey_tablesize_t | get_approx_entry_count () const |
| Return an approximation of the number of entries in the table. More... | |
| off_t | get_root () const |
| off_t | get_offset () const |
Additional Inherited Members | |
Static Public Member Functions inherited from HoneyTable | |
| static void | throw_database_closed () |
Definition at line 38 of file honey_postlisttable.h.
|
inline |
Create a new HoneyPostListTable object.
This method does not create or open the table on disk - you must call the create() or open() methods respectively!
| dbdir | The directory the honey database is stored in. |
| readonly | true if we're opening read-only, else false. |
Definition at line 48 of file honey_postlisttable.h.
|
inline |
Definition at line 51 of file honey_postlisttable.h.
| void HoneyPostListTable::get_freqs | ( | std::string_view | term, |
| Xapian::doccount * | termfreq_ptr, | ||
| Xapian::termcount * | collfreq_ptr | ||
| ) | const |
Definition at line 57 of file honey_postlisttable.cc.
References decode_initial_chunk_header_freqs(), Honey::make_postingchunk_key(), p, and term.
Referenced by HoneyDatabase::get_freqs().
|
inline |
Definition at line 72 of file honey_postlisttable.h.
References HoneyTable::get_exact_entry().
Referenced by HoneyDatabase::get_metadata().
| void HoneyPostListTable::get_used_docid_range | ( | Xapian::doccount | doccount, |
| Xapian::docid & | first, | ||
| Xapian::docid & | last | ||
| ) | const |
Definition at line 79 of file honey_postlisttable.cc.
References Assert, Honey::docid_from_key(), Honey::KEY_DOCLEN_CHUNK, and Honey::make_doclenchunk_key().
Referenced by HoneyDatabase::get_used_docid_range().
| Xapian::termcount HoneyPostListTable::get_wdf_upper_bound | ( | std::string_view | term | ) | const |
Definition at line 129 of file honey_postlisttable.cc.
References decode_initial_chunk_header(), Honey::make_postingchunk_key(), p, and term.
Referenced by HoneyDatabase::get_wdf_upper_bound().
|
inline |
Definition at line 85 of file honey_postlisttable.h.
References term.
Referenced by HoneyInverter::flush_all_post_lists(), HoneyInverter::flush_post_list(), and HoneyInverter::flush_post_lists().
|
inline |
Definition at line 79 of file honey_postlisttable.h.
Referenced by HoneyInverter::flush_doclengths().
| HoneyPostList * HoneyPostListTable::open_post_list | ( | const HoneyDatabase * | db, |
| std::string_view | term, | ||
| bool | need_read_pos | ||
| ) | const |
Definition at line 39 of file honey_postlisttable.cc.
References Assert, Honey::make_postingchunk_key(), and term.
Referenced by HoneyDatabase::open_leaf_post_list().
|
inline |
Definition at line 54 of file honey_postlisttable.h.
References HoneyTable::key_exists(), pack_honey_postlist_key(), and term.
Referenced by HoneyDatabase::term_exists().