22 #ifndef XAPIAN_INCLUDED_POSTLIST_H 23 #define XAPIAN_INCLUDED_POSTLIST_H 111 virtual bool at_end()
const = 0;
216 #endif // XAPIAN_INCLUDED_POSTLIST_H
Abstract base class for postlists.
void operator=(const Internal &)
Don't allow assignment.
virtual Xapian::docid get_docid() const =0
Return the current docid.
virtual void gather_position_lists(OrPositionList *orposlist)
Gather PositionList* objects for a subtree.
virtual Internal * skip_to(Xapian::docid did, double w_min)=0
Skip forward to the specified docid.
virtual double recalc_maxweight()=0
Recalculate the upper bound on what get_weight() can return.
Abstract base class for iterating term positions in a document.
virtual const std::string * get_collapse_key() const
If the collapse key is already known, return it.
virtual Xapian::termcount get_unique_terms() const =0
Return the number of unique terms in the current document.
Xapian::PostingIterator::Internal PostList
virtual Internal * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
virtual const std::string * get_sort_key() const
virtual TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
virtual Xapian::doccount get_termfreq_max() const =0
Get an upper bound on the number of documents indexed by this term.
virtual Xapian::doccount get_termfreq_est() const =0
Get an estimate of the number of documents indexed by this term.
Xapian::Weight::Internal class, holding database and term statistics.
virtual Xapian::doccount get_termfreq_min() const =0
Get a lower bound on the number of documents indexed by this term.
Class to hold statistics for a given collection.
Internal * next()
Advance the current position to the next document in the postlist.
Internal * skip_to(Xapian::docid did)
Skip forward to the specified docid.
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 ...
Base class for objects managed by intrusive_ptr.
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 ...
Internal()
Only constructable as a base class for derived classes.
virtual ~Internal()
We have virtual methods and want to be able to delete derived classes using a pointer to the base cla...
virtual double get_maxweight() const =0
Return an upper bound on what get_weight() can return.
The frequencies for a term.
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.
virtual Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
Class for iterating over a list of document ids.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for iterating term positions in a document.
virtual Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
virtual double get_weight() const =0
Return the weight contribution for the current position.