29 #ifndef OM_HGUARD_ANDMAYBEPOSTLIST_H    30 #define OM_HGUARD_ANDMAYBEPOSTLIST_H    93                   dbsize(dbsize_), lhead(0), rhead(0)
   106                   dbsize(dbsize_), lhead(lhead_), rhead(rhead_)
 
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return. 
 
Abstract base class for postlists. 
 
A postlist with weights modified by another postlist. 
 
PostList * l
Left sub-postlist. 
 
AndMaybePostList(PostList *left_, PostList *right_, MultiMatch *matcher_, Xapian::doccount dbsize_, Xapian::docid lhead_, Xapian::docid rhead_)
Constructor for use by decomposing OrPostList. 
 
virtual Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document. 
 
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term. 
 
Base class for postlists which are generated by merging two sub-postlists. 
 
PostList * sync_rhs(double w_min)
Synchronise the RHS to the LHS after construction. 
 
virtual Xapian::termcount get_doclength() const
Return the document length of the document the current term comes from. 
 
void gather_position_lists(OrPositionList *orposlist)
Gather PositionList* objects for a subtree. 
 
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms. 
 
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid. 
 
std::string get_description() const
Return a string description of this object. 
 
virtual base class for branched types of postlist 
 
Xapian::termcount get_wdf() const
get_wdf() for ANDMAYBE postlists returns the sum of the wdfs of the sub postlists which are at the cu...
 
Class to hold statistics for a given collection. 
 
Internal * next()
Advance the current position to the next document in the postlist. 
 
PostList * process_next_or_skip_to(double w_min, PostList *ret)
 
AndMaybePostList(PostList *left_, PostList *right_, MultiMatch *matcher_, Xapian::doccount dbsize_)
 
double get_weight() const
Return the weight contribution for the current position. 
 
virtual double get_maxweight() const =0
Return an upper bound on what get_weight() can return. 
 
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats. 
 
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term. 
 
double get_maxweight() const
Return an upper bound on what get_weight() can return. 
 
The frequencies for a term. 
 
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents. 
 
PostList * r
Right sub-postlist. 
 
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position. 
 
Xapian::docid get_docid() const
Return the current docid. 
 
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document. 
 
bool at_end() const
Return true if the current position is past the last entry in this list. 
 
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.