22 #ifndef XAPIAN_INCLUDED_QUERYOPTIMISER_H
23 #define XAPIAN_INCLUDED_QUERYOPTIMISER_H
Abstract base class for leaf postlists.
bool weight_needs_wdf() const
const Xapian::Weight::Internal * get_stats() const
PostListAndEstimate open_post_list(const std::string &term, Xapian::termcount wqf, double factor, bool need_positions, bool compound_weight, Xapian::Internal::QueryOptimiser *qopt, bool lazy_weight, TermFreqs *termfreqs)
void register_lazy_postlist_for_stats(LeafPostList *pl, TermFreqs *termfreqs)
PostListAndEstimate make_synonym_postlist(PostListTree *pltree, PostListAndEstimate or_pl, double factor, const TermFreqs &termfreqs)
Convert a postlist into a synonym postlist.
Virtual base class for Database internals.
Abstract base class for postlists.
Xapian::doccount shard_index
Xapian::termcount get_total_subqs() const
void register_lazy_postlist_for_stats(LeafPostList *pl, TermFreqs *termfreqs)
Register a lazily-created LeafPostList for stats.
void set_no_estimates(bool f)
QueryOptimiser(const Xapian::Database::Internal &db_, LocalSubMatch &localsubmatch_, PostListTree *matcher_, Xapian::doccount shard_index_)
QueryOptimiser(const QueryOptimiser &)
Prevent copying.
bool need_wdf_for_compound_weight() const
void operator=(const QueryOptimiser &)
Prevent assignment.
void destroy_postlist(PostList *pl)
LocalSubMatch & localsubmatch
PostListAndEstimate open_post_list(const std::string &term, Xapian::termcount wqf, double factor, TermFreqs *termfreqs)
Create a PostList object for term.
PostListAndEstimate make_synonym_postlist(PostListAndEstimate or_pl, double factor, const TermFreqs &termfreqs)
Create a SynonymPostList object.
void set_hint_postlist(LeafPostList *new_hint)
const Xapian::Weight::Internal * get_stats() const
bool get_no_estimates() const
const Xapian::Database::Internal & db
const LeafPostList * get_hint_postlist() const
PostListAndEstimate open_lazy_post_list(const std::string &term, Xapian::termcount wqf, double factor)
Xapian::termcount total_subqs
How many weighted leaf subqueries there are.
void set_total_subqs(Xapian::termcount n)
Class to hold statistics for a given collection.
Virtual base class for Database internals.
Abstract base class for leaf postlists.
SubMatch class for a local database.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Abstract base class for postlists.
The frequencies for a term.