ChertDatabaseStats Class Reference

Chert class for database statistics. More...

#include <chert_dbstats.h>

List of all members.

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.


Detailed Description

Chert class for database statistics.

Definition at line 32 of file chert_dbstats.h.


Constructor & Destructor Documentation

ChertDatabaseStats::ChertDatabaseStats ( const ChertDatabaseStats  )  [private]

Don't allow copying.

ChertDatabaseStats::ChertDatabaseStats (  )  [inline]

Definition at line 55 of file chert_dbstats.h.


Member Function Documentation

void ChertDatabaseStats::add_document ( Xapian::termcount  doclen  )  [inline]

void ChertDatabaseStats::check_wdf ( Xapian::termcount  wdf  )  [inline]

void ChertDatabaseStats::delete_document ( Xapian::termcount  doclen  )  [inline]

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]

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  ) 

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

void ChertDatabaseStats::zero (  )  [inline]


Member Data Documentation

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().

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().

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().


The documentation for this class was generated from the following files:

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.