xapian-core  1.4.21
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChertDatabaseStats Class Reference

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

Detailed Description

Chert class for database statistics.

Definition at line 32 of file chert_dbstats.h.

Constructor & Destructor Documentation

◆ ChertDatabaseStats() [1/2]

ChertDatabaseStats::ChertDatabaseStats ( const ChertDatabaseStats )
private

Don't allow copying.

◆ ChertDatabaseStats() [2/2]

ChertDatabaseStats::ChertDatabaseStats ( )
inline

Definition at line 55 of file chert_dbstats.h.

Member Function Documentation

◆ add_document()

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

◆ check_wdf()

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

◆ delete_document()

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

◆ get_doclength_lower_bound()

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

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

◆ get_last_docid()

Xapian::docid ChertDatabaseStats::get_last_docid ( ) const
inline

◆ get_next_docid()

Xapian::docid ChertDatabaseStats::get_next_docid ( )
inline

Definition at line 108 of file chert_dbstats.h.

References last_docid, and write().

Referenced by ChertWritableDatabase::add_document().

◆ get_total_doclen()

Xapian::totallength ChertDatabaseStats::get_total_doclen ( ) const
inline

Definition at line 59 of file chert_dbstats.h.

References total_doclen.

Referenced by ChertDatabase::get_total_length().

◆ get_wdf_upper_bound()

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

◆ operator=()

void ChertDatabaseStats::operator= ( const ChertDatabaseStats )
private

Don't allow assignment.

◆ read()

void ChertDatabaseStats::read ( ChertPostListTable postlist_table)

◆ set_last_docid()

void ChertDatabaseStats::set_last_docid ( Xapian::docid  did)
inline

Definition at line 83 of file chert_dbstats.h.

Referenced by ChertWritableDatabase::replace_document().

◆ write()

void ChertDatabaseStats::write ( ChertPostListTable postlist_table) const

◆ zero()

void ChertDatabaseStats::zero ( )
inline

Definition at line 73 of file chert_dbstats.h.

References read().

Referenced by ChertDatabase::create_and_open_tables().

Member Data Documentation

◆ doclen_lbound

Xapian::termcount ChertDatabaseStats::doclen_lbound
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().

◆ doclen_ubound

Xapian::termcount ChertDatabaseStats::doclen_ubound
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().

◆ last_docid

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(), and get_next_docid().

◆ total_doclen

Xapian::totallength 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 get_total_doclen().

◆ wdf_ubound

Xapian::termcount ChertDatabaseStats::wdf_ubound
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().


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