#include <brass_dbstats.h>
Public Member Functions | |
| BrassDatabaseStats () | |
| 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 |
| brass_revision_number_t | get_oldest_changeset () const |
| void | zero () |
| void | read (BrassPostListTable &postlist_table) |
| void | set_last_docid (Xapian::docid did) |
| void | set_oldest_changeset (brass_revision_number_t changeset) |
| 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 (BrassPostListTable &postlist_table) const |
Private Member Functions | |
| void | operator= (const BrassDatabaseStats &) |
| Don't allow assignment. | |
| BrassDatabaseStats (const BrassDatabaseStats &) | |
| 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. | |
| brass_revision_number_t | oldest_changeset |
| Oldest changeset removed when max_changesets is set. | |
Definition at line 33 of file brass_dbstats.h.
| BrassDatabaseStats::BrassDatabaseStats | ( | const BrassDatabaseStats & | ) | [private] |
Don't allow copying.
| BrassDatabaseStats::BrassDatabaseStats | ( | ) | [inline] |
Definition at line 59 of file brass_dbstats.h.
| void BrassDatabaseStats::add_document | ( | Xapian::termcount | doclen | ) | [inline] |
Definition at line 94 of file brass_dbstats.h.
References doclen_lbound, doclen_ubound, and total_doclen.
Referenced by BrassWritableDatabase::add_document_(), and BrassWritableDatabase::replace_document().
| void BrassDatabaseStats::check_wdf | ( | Xapian::termcount | wdf | ) | [inline] |
Definition at line 113 of file brass_dbstats.h.
References wdf_ubound.
Referenced by BrassWritableDatabase::add_document_(), and BrassWritableDatabase::replace_document().
| void BrassDatabaseStats::delete_document | ( | Xapian::termcount | doclen | ) | [inline] |
Definition at line 102 of file brass_dbstats.h.
References doclen_lbound, doclen_ubound, total_doclen, and wdf_ubound.
Referenced by BrassWritableDatabase::delete_document(), and BrassWritableDatabase::replace_document().
| Xapian::termcount BrassDatabaseStats::get_doclength_lower_bound | ( | ) | const [inline] |
Definition at line 67 of file brass_dbstats.h.
References doclen_lbound.
Referenced by BrassDatabase::get_doclength_lower_bound().
| Xapian::termcount BrassDatabaseStats::get_doclength_upper_bound | ( | ) | const [inline] |
Definition at line 71 of file brass_dbstats.h.
References doclen_ubound.
Referenced by BrassDatabase::get_doclength_upper_bound().
| Xapian::docid BrassDatabaseStats::get_last_docid | ( | ) | const [inline] |
Definition at line 65 of file brass_dbstats.h.
References last_docid.
Referenced by BrassWritableDatabase::add_document(), BrassDatabase::get_lastdocid(), BrassWritableDatabase::open_post_list(), BrassDatabase::open_post_list(), and BrassWritableDatabase::replace_document().
| Xapian::docid BrassDatabaseStats::get_next_docid | ( | ) | [inline] |
Definition at line 117 of file brass_dbstats.h.
References last_docid.
Referenced by BrassWritableDatabase::add_document().
| brass_revision_number_t BrassDatabaseStats::get_oldest_changeset | ( | ) | const [inline] |
Definition at line 77 of file brass_dbstats.h.
References oldest_changeset.
Referenced by BrassDatabase::set_revision_number().
| totlen_t BrassDatabaseStats::get_total_doclen | ( | ) | const [inline] |
Definition at line 63 of file brass_dbstats.h.
References total_doclen.
Referenced by BrassDatabase::get_avlength(), and BrassDatabase::get_total_length().
| Xapian::termcount BrassDatabaseStats::get_wdf_upper_bound | ( | ) | const [inline] |
Definition at line 75 of file brass_dbstats.h.
References wdf_ubound.
Referenced by BrassDatabase::get_wdf_upper_bound().
| void BrassDatabaseStats::operator= | ( | const BrassDatabaseStats & | ) | [private] |
Don't allow assignment.
| void BrassDatabaseStats::read | ( | BrassPostListTable & | postlist_table | ) |
Definition at line 34 of file brass_dbstats.cc.
References DATABASE_STATS_KEY(), doclen_lbound, doclen_ubound, BrassTable::get_exact_entry(), last_docid, oldest_changeset, total_doclen, unpack_uint(), unpack_uint_last(), wdf_ubound, and zero().
Referenced by BrassWritableDatabase::cancel(), and BrassDatabase::open_tables_consistent().
| void BrassDatabaseStats::set_last_docid | ( | Xapian::docid | did | ) | [inline] |
Definition at line 90 of file brass_dbstats.h.
References last_docid.
Referenced by BrassWritableDatabase::replace_document().
| void BrassDatabaseStats::set_oldest_changeset | ( | brass_revision_number_t | changeset | ) | [inline] |
Definition at line 92 of file brass_dbstats.h.
References oldest_changeset.
Referenced by BrassDatabase::set_revision_number().
| void BrassDatabaseStats::write | ( | BrassPostListTable & | postlist_table | ) | const |
Definition at line 66 of file brass_dbstats.cc.
References BrassTable::add(), DATABASE_STATS_KEY(), doclen_lbound, doclen_ubound, last_docid, oldest_changeset, pack_uint(), pack_uint_last(), total_doclen, and wdf_ubound.
Referenced by BrassWritableDatabase::flush_postlist_changes().
| void BrassDatabaseStats::zero | ( | ) | [inline] |
Definition at line 79 of file brass_dbstats.h.
References doclen_lbound, doclen_ubound, last_docid, oldest_changeset, total_doclen, and wdf_ubound.
Referenced by BrassDatabase::create_and_open_tables(), and read().
A lower bound on the smallest document length in this database.
Definition at line 47 of file brass_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 50 of file brass_dbstats.h.
Referenced by add_document(), delete_document(), get_doclength_upper_bound(), read(), write(), and zero().
Xapian::docid BrassDatabaseStats::last_docid [private] |
Greatest document id ever used in this database.
Definition at line 44 of file brass_dbstats.h.
Referenced by get_last_docid(), get_next_docid(), read(), set_last_docid(), write(), and zero().
Oldest changeset removed when max_changesets is set.
Definition at line 56 of file brass_dbstats.h.
Referenced by get_oldest_changeset(), read(), set_oldest_changeset(), write(), and zero().
totlen_t BrassDatabaseStats::total_doclen [private] |
The total of the lengths of all documents in the database.
Definition at line 41 of file brass_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 53 of file brass_dbstats.h.
Referenced by check_wdf(), delete_document(), get_wdf_upper_bound(), read(), write(), and zero().