22 #ifndef XAPIAN_INCLUDED_MULTI_POSTLIST_H
23 #define XAPIAN_INCLUDED_MULTI_POSTLIST_H
Class for merging PostList objects from subdatabases.
PostList ** postlists
Sub-postlists which we use as a heap.
bool at_end() const
Return true if the current position is past the last entry in this list.
std::string get_description() const
Return a string description of this object.
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
~MultiPostList()
Destructor.
PositionList * open_position_list() const
Read the position list for the term in the current document and.
Xapian::docid get_docid() const
Return the current docid.
MultiPostList(const MultiPostList &)=delete
Don't allow copying.
Xapian::doccount n_shards
Number of PostList* entries in postlists.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
void operator=(const MultiPostList &)=delete
Don't allow assignment.
Xapian::docid * docids
Heap of docids from the current positions of the postlists.
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
Xapian::doccount docids_size
Number of entries in docids;.
MultiPostList(Xapian::doccount n_shards_, PostList **postlists_)
Constructor.
Abstract base class for postlists.
Xapian::doccount get_termfreq() const
Get an estimate of the number of documents this PostList will return.
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.
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 iterating term positions in a document.
Abstract base class for postlists.