#include <chert_dbstats.h>
Public Member Functions | |
| ChertDatabaseStats () | |
| totlen_t | get_total_doclen () const |
| Xapian::docid | get_last_docid () const |
| Xapian::termcount | get_doclength_lower_bound () const |
| Xapian::termcount | get_doclength_upper_bound () const |
| Xapian::termcount | get_wdf_upper_bound () const |
| void | zero () |
| void | read (ChertPostListTable &postlist_table) |
| void | set_last_docid (Xapian::docid did) |
| void | add_document (Xapian::termcount doclen) |
| void | delete_document (Xapian::termcount doclen) |
| void | check_wdf (Xapian::termcount wdf) |
| Xapian::docid | get_next_docid () |
| void | write (ChertPostListTable &postlist_table) const |
Private Member Functions | |
| void | operator= (const ChertDatabaseStats &) |
| Don't allow assignment. | |
| ChertDatabaseStats (const ChertDatabaseStats &) | |
| Don't allow copying. | |
Private Attributes | |
| totlen_t | total_doclen |
| The total of the lengths of all documents in the database. | |
| Xapian::docid | last_docid |
| Greatest document id ever used in this database. | |
| Xapian::termcount | doclen_lbound |
| A lower bound on the smallest document length in this database. | |
| Xapian::termcount | doclen_ubound |
| An upper bound on the greatest document length in this database. | |
| Xapian::termcount | wdf_ubound |
| An upper bound on the greatest wdf in this database. | |
Definition at line 32 of file chert_dbstats.h.
| ChertDatabaseStats::ChertDatabaseStats | ( | const ChertDatabaseStats & | ) | [private] |
Don't allow copying.
| ChertDatabaseStats::ChertDatabaseStats | ( | ) | [inline] |
Definition at line 55 of file chert_dbstats.h.
| void ChertDatabaseStats::add_document | ( | Xapian::termcount | doclen | ) | [inline] |
Definition at line 85 of file chert_dbstats.h.
References doclen_lbound, doclen_ubound, and total_doclen.
Referenced by ChertWritableDatabase::add_document_(), and ChertWritableDatabase::replace_document().
| void ChertDatabaseStats::check_wdf | ( | Xapian::termcount | wdf | ) | [inline] |
Definition at line 104 of file chert_dbstats.h.
References wdf_ubound.
Referenced by ChertWritableDatabase::add_document_(), and ChertWritableDatabase::replace_document().
| void ChertDatabaseStats::delete_document | ( | Xapian::termcount | doclen | ) | [inline] |
Definition at line 93 of file chert_dbstats.h.
References doclen_lbound, doclen_ubound, total_doclen, and wdf_ubound.
Referenced by ChertWritableDatabase::delete_document(), and ChertWritableDatabase::replace_document().
| Xapian::termcount ChertDatabaseStats::get_doclength_lower_bound | ( | ) | const [inline] |
Definition at line 63 of file chert_dbstats.h.
References doclen_lbound.
Referenced by ChertDatabase::get_doclength_lower_bound().
| Xapian::termcount ChertDatabaseStats::get_doclength_upper_bound | ( | ) | const [inline] |
Definition at line 67 of file chert_dbstats.h.
References doclen_ubound.
Referenced by ChertDatabase::get_doclength_upper_bound().
| Xapian::docid ChertDatabaseStats::get_last_docid | ( | ) | const [inline] |
Definition at line 61 of file chert_dbstats.h.
References last_docid.
Referenced by ChertWritableDatabase::add_document(), ChertDatabase::get_lastdocid(), ChertWritableDatabase::open_post_list(), ChertDatabase::open_post_list(), and ChertWritableDatabase::replace_document().
| Xapian::docid ChertDatabaseStats::get_next_docid | ( | ) | [inline] |
Definition at line 108 of file chert_dbstats.h.
References last_docid.
Referenced by ChertWritableDatabase::add_document().
| totlen_t ChertDatabaseStats::get_total_doclen | ( | ) | const [inline] |
Definition at line 59 of file chert_dbstats.h.
References total_doclen.
Referenced by ChertDatabase::get_avlength(), and ChertDatabase::get_total_length().
| Xapian::termcount ChertDatabaseStats::get_wdf_upper_bound | ( | ) | const [inline] |
Definition at line 71 of file chert_dbstats.h.
References wdf_ubound.
Referenced by ChertDatabase::get_wdf_upper_bound().
| void ChertDatabaseStats::operator= | ( | const ChertDatabaseStats & | ) | [private] |
Don't allow assignment.
| void ChertDatabaseStats::read | ( | ChertPostListTable & | postlist_table | ) |
Definition at line 33 of file chert_dbstats.cc.
References DATABASE_STATS_KEY(), doclen_lbound, doclen_ubound, ChertTable::get_exact_entry(), last_docid, total_doclen, unpack_uint(), unpack_uint_last(), and wdf_ubound.
Referenced by ChertWritableDatabase::cancel(), and ChertDatabase::open_tables_consistent().
| void ChertDatabaseStats::set_last_docid | ( | Xapian::docid | did | ) | [inline] |
Definition at line 83 of file chert_dbstats.h.
References last_docid.
Referenced by ChertWritableDatabase::replace_document().
| void ChertDatabaseStats::write | ( | ChertPostListTable & | postlist_table | ) | const |
Definition at line 68 of file chert_dbstats.cc.
References ChertTable::add(), DATABASE_STATS_KEY(), doclen_lbound, doclen_ubound, last_docid, pack_uint(), pack_uint_last(), total_doclen, and wdf_ubound.
Referenced by ChertWritableDatabase::flush_postlist_changes().
| void ChertDatabaseStats::zero | ( | ) | [inline] |
Definition at line 73 of file chert_dbstats.h.
References doclen_lbound, doclen_ubound, last_docid, total_doclen, and wdf_ubound.
Referenced by ChertDatabase::create_and_open_tables().
A lower bound on the smallest document length in this database.
Definition at line 46 of file chert_dbstats.h.
Referenced by add_document(), delete_document(), get_doclength_lower_bound(), read(), write(), and zero().
An upper bound on the greatest document length in this database.
Definition at line 49 of file chert_dbstats.h.
Referenced by add_document(), delete_document(), get_doclength_upper_bound(), read(), write(), and zero().
Xapian::docid ChertDatabaseStats::last_docid [private] |
Greatest document id ever used in this database.
Definition at line 43 of file chert_dbstats.h.
Referenced by get_last_docid(), get_next_docid(), read(), set_last_docid(), write(), and zero().
totlen_t ChertDatabaseStats::total_doclen [private] |
The total of the lengths of all documents in the database.
Definition at line 40 of file chert_dbstats.h.
Referenced by add_document(), delete_document(), get_total_doclen(), read(), write(), and zero().
An upper bound on the greatest wdf in this database.
Definition at line 52 of file chert_dbstats.h.
Referenced by check_wdf(), delete_document(), get_wdf_upper_bound(), read(), write(), and zero().