25 #ifndef OM_HGUARD_MERGEPOSTLIST_H 26 #define OM_HGUARD_MERGEPOSTLIST_H 96 : plists(plists_), current(-1), matcher(matcher_), vsdoc(vsdoc_)
Abstract base class for postlists.
string get_description() const
Return a string description of this object.
A document which gets its values from a ValueStreamManager.
MergePostList(const std::vector< PostList *> &plists_, MultiMatch *matcher_, ValueStreamDocument &vsdoc_)
MergePostList & operator=(const MergePostList &)
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
const string * get_sort_key() const
MergePostList(const MergePostList &)
double get_weight() const
Return the weight contribution for the current position.
A postlist comprising postlists from different databases merged together.
Abstract base class for postlists.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
Internal * next()
Advance the current position to the next document in the postlist.
const string * get_collapse_key() const
If the collapse key is already known, return it.
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
virtual Xapian::termcount get_unique_terms() const
Return the number of unique terms in the document.
Xapian::docid get_docid() const
Return the current docid.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
ValueStreamDocument & vsdoc
Document proxy used for valuestream caching.
virtual Xapian::termcount get_doclength() const
Return the document length of the document the current term comes from.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
vector< PostList * > plists
bool at_end() const
Return true if the current position is past the last entry in this list.
MultiMatch * matcher
The object which is using this postlist to perform a match.