22 #ifndef XAPIAN_INCLUDED_MULTIXORPOSTLIST_H
23 #define XAPIAN_INCLUDED_MULTIXORPOSTLIST_H
61 for (
size_t j = i; j <
n_kids; ++j) {
71 template<
class RandomItor>
78 std::copy(pl_begin, pl_end,
plist);
void recalc_maxweight()
Called by postlists to indicate that they've rearranged themselves and the maxweight now possible is ...
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
std::string get_description() const
Return a string description of this object.
MultiXorPostList(const MultiXorPostList &)
Don't allow copying.
PostList ** plist
Array of pointers to sub-postlists.
size_t n_kids
The number of sub-postlists.
void erase_sublist(size_t i)
Erase a sub-postlist.
bool at_end() const
Return true if the current position is past the last entry in this list.
MultiXorPostList(RandomItor pl_begin, RandomItor pl_end, MultiMatch *matcher_, Xapian::doccount db_size_)
Construct from 2 random-access iterators to a container of PostList*, a pointer to the matcher,...
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
double get_weight() const
Return the weight contribution for the current position.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
double max_total
Total maximum weight the XOR could possibly return.
Xapian::doccount db_size
The number of documents in the database.
Xapian::docid did
The current docid, or zero if we haven't started or are at_end.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
PositionList * read_position_list()
Read the position list for the term in the current document and return a pointer to it (owned by the ...
Xapian::termcount get_doclength() const
Return the length of current document.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
void operator=(const MultiXorPostList &)
Don't allow assignment.
MultiMatch * matcher
Pointer to the matcher object, so we can report pruning.
Xapian::termcount get_wdf() const
get_wdf() for MultiXorPostlists returns the sum of the wdfs of the sub postlists which match the curr...
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
Xapian::docid get_docid() const
Return the current docid.
Abstract base class for iterating term positions in a document.
Abstract base class for postlists.
Internal * next()
Advance the current position to the next document in the postlist.
Class to hold statistics for a given collection.
class for performing a match
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
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.
The frequencies for a term.