xapian-core  1.4.21
Public Member Functions | Private Member Functions | List of all members
Xapian::Internal::QueryAndNot Class Reference

#include <queryinternal.h>

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

Public Member Functions

 QueryAndNot (size_t n_subqueries)
 
PostingIterator::Internalpostlist (QueryOptimiser *qopt, double factor) const
 
void postlist_sub_and_like (AndContext &ctx, QueryOptimiser *qopt, double factor) const
 
void add_subquery (const Xapian::Query &subquery)
 
Query::Internaldone ()
 
std::string get_description () const
 
- Public Member Functions inherited from Xapian::Internal::QueryBranch
termcount get_length () const
 
void serialise (std::string &result) const
 
void gather_terms (void *void_terms) const
 
Xapian::Query::op get_type () const
 
size_t get_num_subqueries () const
 
const Query get_subquery (size_t n) const
 
- Public Member Functions inherited from Xapian::Query::Internal
 Internal ()
 
virtual ~Internal ()
 
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
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Member Functions

Xapian::Query::op get_op () const
 

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...
 
- Protected Member Functions inherited from Xapian::Internal::QueryBranch
 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 inherited from Xapian::Internal::QueryBranch
QueryVector subqueries
 

Detailed Description

Definition at line 255 of file queryinternal.h.

Constructor & Destructor Documentation

◆ QueryAndNot()

Xapian::Internal::QueryAndNot::QueryAndNot ( size_t  n_subqueries)
inlineexplicit

Member Function Documentation

◆ add_subquery()

void Xapian::Internal::QueryAndNot::add_subquery ( const Xapian::Query subquery)
virtual

◆ done()

Query::Internal * Xapian::Internal::QueryAndNot::done ( )
virtual

Implements Xapian::Internal::QueryBranch.

Definition at line 1615 of file queryinternal.cc.

◆ get_description()

string Xapian::Internal::QueryAndNot::get_description ( ) const
virtual

Implements Xapian::Query::Internal.

Definition at line 1961 of file queryinternal.cc.

◆ get_op()

Xapian::Query::op Xapian::Internal::QueryAndNot::get_op ( ) const
privatevirtual

Implements Xapian::Internal::QueryBranch.

Definition at line 1889 of file queryinternal.cc.

References Xapian::Query::OP_AND_NOT.

◆ postlist()

PostingIterator::Internal * Xapian::Internal::QueryAndNot::postlist ( QueryOptimiser qopt,
double  factor 
) const
virtual

◆ postlist_sub_and_like()

void Xapian::Internal::QueryAndNot::postlist_sub_and_like ( AndContext ctx,
QueryOptimiser qopt,
double  factor 
) const
virtual

Reimplemented from Xapian::Query::Internal.

Definition at line 1679 of file queryinternal.cc.

References Xapian::Internal::AndContext::get_not_ctx().


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