21 #ifndef XAPIAN_INCLUDED_CHERT_DBSTATS_H 22 #define XAPIAN_INCLUDED_CHERT_DBSTATS_H 56 : total_doclen(0), last_docid(0), doclen_lbound(0), doclen_ubound(0),
86 if (total_doclen == 0 || (doclen && doclen < doclen_lbound))
87 doclen_lbound = doclen;
88 if (doclen > doclen_ubound)
89 doclen_ubound = doclen;
90 total_doclen += doclen;
94 total_doclen -= doclen;
97 if (total_doclen == 0) {
105 if (wdf > wdf_ubound) wdf_ubound = wdf;
113 #endif // XAPIAN_INCLUDED_CHERT_DBSTATS_H Xapian::termcount get_wdf_upper_bound() const
Xapian::termcount get_doclength_upper_bound() const
Xapian::termcount doclen_ubound
An upper bound on the greatest document length in this database.
Xapian::totallength get_total_doclen() const
XAPIAN_TOTALLENGTH_TYPE totallength
The total length of all documents in a database.
void operator=(const ChertDatabaseStats &)
Don't allow assignment.
Xapian::docid get_next_docid()
Types used by chert backend and the Btree manager.
Xapian::docid get_last_docid() const
void delete_document(Xapian::termcount doclen)
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
void read(ChertPostListTable &postlist_table)
Xapian::termcount wdf_ubound
An upper bound on the greatest wdf in this database.
Xapian::totallength 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.
void write(ChertPostListTable &postlist_table) const
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Chert class for database statistics.
void set_last_docid(Xapian::docid did)
Xapian::termcount get_doclength_lower_bound() const
void add_document(Xapian::termcount doclen)
void check_wdf(Xapian::termcount wdf)