xapian-core  1.4.26
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 select_elite_set (size_t set_size, size_t out_of)
 Select the best set_size postlists from the last out_of added. More...
 
void select_most_frequent (size_t set_size)
 Select the set_size postlists with the highest term frequency. More...
 
PostListpostlist ()
 
PostListpostlist_max ()
 
- Public Member Functions inherited from Xapian::Internal::Context
 Context (QueryOptimiser *qopt_, size_t reserve)
 
 ~Context ()
 
void add_postlist (PostList *pl)
 
bool empty () const
 
size_t size () const
 
void shrink (size_t new_size)
 

Additional Inherited Members

- Protected Attributes inherited from Xapian::Internal::Context
QueryOptimiserqopt
 
vector< PostList * > pls
 

Detailed Description

Definition at line 171 of file queryinternal.cc.

Constructor & Destructor Documentation

◆ OrContext()

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

Definition at line 173 of file queryinternal.cc.

Member Function Documentation

◆ postlist()

PostList * Xapian::Internal::OrContext::postlist ( )

◆ postlist_max()

PostList * 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 187 of file queryinternal.cc.

References Xapian::Internal::Context::pls, and Xapian::Internal::Context::shrink().

Referenced by Xapian::Internal::QueryBranch::do_or_like().

◆ select_most_frequent()

void Xapian::Internal::OrContext::select_most_frequent ( size_t  set_size)

Select the set_size postlists with the highest term frequency.

Definition at line 200 of file queryinternal.cc.

References Xapian::Internal::Context::pls, and Xapian::Internal::Context::shrink().

Referenced by Xapian::Internal::QueryWildcard::postlist().


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