xapian-core  2.0.0
Public Member Functions | List of all members
Xapian::Internal::OrContext Class Reference
+ 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
QueryOptimiserqopt
 
vector< PostList * > pls
 
VecUniquePtr< EstimateOpestimates
 
vector< TermFreqstermfreqs_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...
 

Detailed Description

Definition at line 391 of file queryinternal.cc.

Constructor & Destructor Documentation

◆ OrContext()

Xapian::Internal::OrContext::OrContext ( QueryOptimiser qopt_,
size_t  reserve 
)
inline

Definition at line 393 of file queryinternal.cc.

Member Function Documentation

◆ estimate_termfreqs()

void Xapian::Internal::OrContext::estimate_termfreqs ( TermFreqs termfreqs)

◆ postlist()

PostListAndEstimate Xapian::Internal::OrContext::postlist ( TermFreqs termfreqs,
bool  bool_or = false 
)

◆ postlist_max()

PostListAndEstimate Xapian::Internal::OrContext::postlist_max ( )

◆ select_elite_set()

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().


The documentation for this class was generated from the following file: