23 #ifndef OM_HGUARD_SELECTPOSTLIST_H 24 #define OM_HGUARD_SELECTPOSTLIST_H
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Abstract base class for postlists.
SelectPostList(PostList *source_)
double get_maxweight() const
Return an upper bound on what get_weight() can return.
virtual Xapian::docid get_docid() const =0
Return the current 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 ...
virtual double recalc_maxweight()=0
Recalculate the upper bound on what get_weight() can return.
PositionList * open_position_list() const
Read the position list for the term in the current document and return a pointer to it (not owned by ...
SelectPostList & operator=(const SelectPostList &)
virtual Xapian::termcount get_unique_terms() const =0
Return the number of unique terms in the current document.
Abstract base class for postlists.
Xapian::termcount get_doclength() const
Return the length of current document.
Xapian::docid get_docid() const
Return the current docid.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
virtual bool test_doc()=0
Subclasses should override test_doc() with a method which returns true if a document meets the approp...
virtual Xapian::doccount get_termfreq_max() const =0
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.
virtual PositionList * read_position_list()
Read the position list for the term in the current document and return a pointer to it (owned by the ...
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.
virtual PositionList * open_position_list() const
Read the position list for the term in the current document and return a pointer to it (not owned by ...
virtual double get_maxweight() const =0
Return an upper bound on what get_weight() can return.
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
A postlist parent class for classes which only return selected docs from a source postlist (e...
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
virtual Xapian::termcount get_doclength() const =0
Return the length of current document.
virtual std::string get_description() const =0
Return a string description of this object.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
std::string get_description() const
Return a string description of this object.
virtual Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
bool check_weight(double w_min)
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for iterating term positions in a document.
SelectPostList(const SelectPostList &)
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
double get_weight() const
Return the weight contribution for the current position.
virtual double get_weight() const =0
Return the weight contribution for the current position.