BrassDatabaseStats Class Reference

Brass class for database statistics. More...

#include <brass_dbstats.h>

List of all members.

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.


Detailed Description

Brass class for database statistics.

Definition at line 33 of file brass_dbstats.h.


Constructor & Destructor Documentation

BrassDatabaseStats::BrassDatabaseStats ( const BrassDatabaseStats  )  [private]

Don't allow copying.

BrassDatabaseStats::BrassDatabaseStats (  )  [inline]

Definition at line 59 of file brass_dbstats.h.


Member Function Documentation

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

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

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

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]

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  ) 

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

void BrassDatabaseStats::zero (  )  [inline]


Member Data Documentation

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

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

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


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.