23 #ifndef XAPIAN_INCLUDED_VALUERANGEPOSTLIST_H
24 #define XAPIAN_INCLUDED_VALUERANGEPOSTLIST_H
62 const std::string &begin_,
const std::string &end_)
Class for estimating the total number of matching documents.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
ValueRangePostList(const ValueRangePostList &)
Disallow copying.
Xapian::termcount get_wdfdocmax() const
std::string get_description() const
Return a string description of this object.
ValueRangePostList(const Xapian::Database::Internal *db_, EstimateOp *estimate_op_, Xapian::doccount termfreq_, Xapian::valueno slot_, const std::string &begin_, const std::string &end_)
const Xapian::Database::Internal * db
PositionList * read_position_list()
Read the position list for the term in the current document and return a pointer to it (owned by the ...
void operator=(const ValueRangePostList &)
Disallow assignment.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
Xapian::doccount accepted
Number of times the range test accepted the candidate document.
EstimateOp * estimate_op
Object to report accepted/rejected counts to.
Xapian::doccount rejected
Number of times the range test rejected the candidate document.
bool at_end() const
Return true if the current position is past the last entry in this list.
Xapian::docid get_docid() const
Return the current docid.
Virtual base class for Database internals.
Abstract base class for postlists.
PostList * next()
Advance the current position to the next document in the postlist.
Xapian::doccount termfreq
Estimate of the number of documents this PostList will return.
Abstract base class for iterating term positions in a document.
Abstract base class for value streams.
An indexed database of documents.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for postlists.
Abstract base class for value streams.