xapian-core  1.4.27
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Xapian::Internal::QueryBranch Class Referenceabstract

#include <queryinternal.h>

+ Inheritance diagram for Xapian::Internal::QueryBranch:
+ Collaboration diagram for Xapian::Internal::QueryBranch:

Public Member Functions

termcount get_length () const
 
void serialise (std::string &result) const
 
void gather_terms (void *void_terms) const
 
virtual void add_subquery (const Xapian::Query &subquery)=0
 
Xapian::Query::op get_type () const
 
size_t get_num_subqueries () const
 
const Query get_subquery (size_t n) const
 
virtual Query::Internaldone ()=0
 
- Public Member Functions inherited from Xapian::Query::Internal
 Internal ()
 
virtual ~Internal ()
 
virtual PostingIterator::Internalpostlist (QueryOptimiser *qopt, double factor) const =0
 
virtual void postlist_sub_and_like (Xapian::Internal::AndContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual void postlist_sub_or_like (Xapian::Internal::OrContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual void postlist_sub_xor (Xapian::Internal::XorContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual std::string get_description () const =0
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Protected Member Functions

 QueryBranch (size_t n_subqueries)
 
void serialise_ (std::string &result, Xapian::termcount parameter=0) const
 
void do_or_like (OrContext &ctx, QueryOptimiser *qopt, double factor, Xapian::termcount elite_set_size=0, size_t first=0) const
 
PostListdo_synonym (QueryOptimiser *qopt, double factor) const
 
PostListdo_max (QueryOptimiser *qopt, double factor) const
 
const std::string get_description_helper (const char *op, Xapian::termcount window=0) const
 

Protected Attributes

QueryVector subqueries
 

Private Member Functions

virtual Xapian::Query::op get_op () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from Xapian::Query::Internal
static Query::Internalunserialise (const char **p, const char *end, const Registry &reg)
 
- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 

Detailed Description

Definition at line 171 of file queryinternal.h.

Constructor & Destructor Documentation

◆ QueryBranch()

Xapian::Internal::QueryBranch::QueryBranch ( size_t  n_subqueries)
inlineexplicitprotected

Member Function Documentation

◆ add_subquery()

virtual void Xapian::Internal::QueryBranch::add_subquery ( const Xapian::Query subquery)
pure virtual

◆ do_max()

PostList * Xapian::Internal::QueryBranch::do_max ( QueryOptimiser qopt,
double  factor 
) const
protected

Definition at line 1362 of file queryinternal.cc.

References LOGCALL, and RETURN.

◆ do_or_like()

void Xapian::Internal::QueryBranch::do_or_like ( OrContext ctx,
QueryOptimiser qopt,
double  factor,
Xapian::termcount  elite_set_size = 0,
size_t  first = 0 
) const
protected

◆ do_synonym()

PostList * Xapian::Internal::QueryBranch::do_synonym ( QueryOptimiser qopt,
double  factor 
) const
protected

◆ done()

virtual Query::Internal* Xapian::Internal::QueryBranch::done ( )
pure virtual

◆ gather_terms()

void Xapian::Internal::QueryBranch::gather_terms ( void *  void_terms) const
virtual

Reimplemented from Xapian::Query::Internal.

Definition at line 1238 of file queryinternal.cc.

References Assert.

◆ get_description_helper()

const string Xapian::Internal::QueryBranch::get_description_helper ( const char *  op,
Xapian::termcount  window = 0 
) const
protected

Definition at line 1399 of file queryinternal.cc.

References Assert, and Xapian::Internal::str().

◆ get_length()

Xapian::termcount Xapian::Internal::QueryBranch::get_length ( ) const
virtual

Reimplemented from Xapian::Query::Internal.

Definition at line 1147 of file queryinternal.cc.

◆ get_num_subqueries()

size_t Xapian::Internal::QueryBranch::get_num_subqueries ( ) const
virtual

Reimplemented from Xapian::Query::Internal.

Definition at line 1387 of file queryinternal.cc.

◆ get_op()

virtual Xapian::Query::op Xapian::Internal::QueryBranch::get_op ( ) const
privatepure virtual

◆ get_subquery()

const Query Xapian::Internal::QueryBranch::get_subquery ( size_t  n) const
virtual

Reimplemented from Xapian::Query::Internal.

Definition at line 1393 of file queryinternal.cc.

◆ get_type()

Xapian::Query::op Xapian::Internal::QueryBranch::get_type ( ) const
virtual

Implements Xapian::Query::Internal.

Definition at line 1381 of file queryinternal.cc.

◆ serialise()

void Xapian::Internal::QueryBranch::serialise ( std::string &  result) const
virtual

◆ serialise_()

void Xapian::Internal::QueryBranch::serialise_ ( std::string &  result,
Xapian::termcount  parameter = 0 
) const
protected

Member Data Documentation

◆ subqueries

QueryVector Xapian::Internal::QueryBranch::subqueries
protected

Definition at line 175 of file queryinternal.h.


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