|
xapian-core
2.0.0
|
Inheritance diagram for Xapian::Internal::OrContext:
Collaboration diagram for Xapian::Internal::OrContext:Public Member Functions | |
| OrContext (QueryOptimiser *qopt_, size_t reserve) | |
| void | estimate_termfreqs (TermFreqs *termfreqs) |
| void | select_elite_set (size_t set_size, size_t out_of) |
| Select the best set_size postlists from the last out_of added. More... | |
| PostListAndEstimate | postlist (TermFreqs *termfreqs, bool bool_or=false) |
| PostListAndEstimate | postlist_max () |
Public Member Functions inherited from Xapian::Internal::Context | |
| Context (QueryOptimiser *qopt_, size_t reserve) | |
| ~Context () | |
| Xapian::docid | get_first () const |
| Xapian::docid | get_last () const |
| void | add_termfreqs (TermFreqs *termfreqs) |
| void | add_postlist (PostList *pl, EstimateOp *estimate, TermFreqs *termfreqs) |
| void | add_postlist (PostListAndEstimate p, TermFreqs *termfreqs) |
| bool | empty () const |
| Xapian::termcount | size () const |
| void | shrink (size_t new_size) |
| void | expand_wildcard (const QueryWildcard *query, double factor, TermFreqs *termfreqs) |
| Expand a wildcard query. More... | |
| void | expand_edit_distance (const QueryEditDistance *query, double factor, TermFreqs *termfreqs) |
| Expand an edit distance query. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Xapian::Internal::Context | |
| QueryOptimiser * | qopt |
| vector< PostList * > | pls |
| VecUniquePtr< EstimateOp > | estimates |
| vector< TermFreqs > | termfreqs_list |
| Xapian::docid | first = Xapian::docid(-1) |
| Lower bound on matching docid range. More... | |
| Xapian::docid | last = 0 |
| Upper bound on matching docid range. More... | |
Definition at line 391 of file queryinternal.cc.
|
inline |
Definition at line 393 of file queryinternal.cc.
| void Xapian::Internal::OrContext::estimate_termfreqs | ( | TermFreqs * | termfreqs | ) |
Definition at line 407 of file queryinternal.cc.
References Assert, Xapian::Internal::TermFreqs::collfreq, Xapian::Internal::TermFreqs::reltermfreq, Xapian::Internal::TermFreqs::termfreq, and usual.
| PostListAndEstimate Xapian::Internal::OrContext::postlist | ( | TermFreqs * | termfreqs, |
| bool | bool_or = false |
||
| ) |
Definition at line 464 of file queryinternal.cc.
References Heap::make(), EstimateOp::OR, Heap::pop(), and Heap::replace().
Referenced by Xapian::Internal::QueryBranch::do_max(), Xapian::Internal::QueryBranch::do_synonym(), Xapian::Internal::QueryOr::postlist(), Xapian::Internal::QueryEliteSet::postlist(), Xapian::Internal::QueryWildcard::postlist(), and Xapian::Internal::QueryEditDistance::postlist().
| PostListAndEstimate Xapian::Internal::OrContext::postlist_max | ( | ) |
Definition at line 527 of file queryinternal.cc.
References EstimateOp::OR, and Heap::sort().
Referenced by Xapian::Internal::QueryBranch::do_max(), Xapian::Internal::QueryWildcard::postlist(), and Xapian::Internal::QueryEditDistance::postlist().
| void Xapian::Internal::OrContext::select_elite_set | ( | size_t | set_size, |
| size_t | out_of | ||
| ) |
Select the best set_size postlists from the last out_of added.
Definition at line 456 of file queryinternal.cc.
Referenced by Xapian::Internal::QueryBranch::do_or_like().