21 #ifndef XAPIAN_INCLUDED_EMPTYPOSTLIST_H 22 #define XAPIAN_INCLUDED_EMPTYPOSTLIST_H 58 #endif // XAPIAN_INCLUDED_EMPTYPOSTLIST_H Abstract base class for postlists.
Xapian::docid get_docid() const
Return the current docid.
A PostList which contains no entries.
EmptyPostList()
Constructor.
Abstract base class for postlists.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
std::string get_description() const
Return a string description of this object.
Class to hold statistics for a given collection.
Internal * next()
Advance the current position to the next document in the postlist.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
The frequencies for a term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
void operator=(const EmptyPostList &)
Don't allow assignment.
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 get_doclength() const
Return the length of current document.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &) const
Get an estimate for the termfreq and reltermfreq, given the stats.
bool at_end() const
Return true if the current position is past the last entry in this list.