xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
Xapian::Internal::QueryScaleWeight Class Reference

#include <queryinternal.h>

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

Public Member Functions

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

Private Attributes

double scale_factor
 
Query subquery
 

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 85 of file queryinternal.h.

Constructor & Destructor Documentation

◆ QueryScaleWeight()

Xapian::Internal::QueryScaleWeight::QueryScaleWeight ( double  factor,
const Query subquery_ 
)

Definition at line 733 of file queryinternal.cc.

References rare, and scale_factor.

Member Function Documentation

◆ gather_terms()

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

Reimplemented from Xapian::Query::Internal.

Definition at line 1432 of file queryinternal.cc.

References Xapian::Query::internal, and subquery.

◆ get_description()

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

◆ get_length()

termcount Xapian::Internal::QueryScaleWeight::get_length ( ) const
inlinevirtual

◆ get_num_subqueries()

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

Reimplemented from Xapian::Query::Internal.

Definition at line 747 of file queryinternal.cc.

◆ get_subquery()

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

Reimplemented from Xapian::Query::Internal.

Definition at line 753 of file queryinternal.cc.

References subquery.

◆ get_type()

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

◆ postlist()

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

Implements Xapian::Query::Internal.

Definition at line 795 of file queryinternal.cc.

References Xapian::Query::internal, LOGCALL, RETURN, scale_factor, and subquery.

◆ serialise()

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

Member Data Documentation

◆ scale_factor

double Xapian::Internal::QueryScaleWeight::scale_factor
private

Definition at line 86 of file queryinternal.h.

Referenced by get_description(), postlist(), QueryScaleWeight(), and serialise().

◆ subquery

Query Xapian::Internal::QueryScaleWeight::subquery
private

Definition at line 88 of file queryinternal.h.

Referenced by gather_terms(), get_description(), get_subquery(), postlist(), and serialise().


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