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