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

#include <queryinternal.h>

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

Public Member Functions

 QueryPostingSource (PostingSource *source_)
 
PostListAndEstimate postlist (QueryOptimiser *qopt, double factor, TermFreqs *termfreqs) const
 
void serialise (std::string &result) const
 
Xapian::Query::op get_type () const noexcept
 
std::string get_description () const
 
- Public Member Functions inherited from Xapian::Query::Internal
 Internal () noexcept
 
virtual ~Internal ()
 
virtual bool postlist_sub_and_like (Xapian::Internal::AndContext &ctx, Xapian::Internal::QueryOptimiser *qopt, double factor, Xapian::Internal::TermFreqs *termfreqs) const
 
virtual void postlist_sub_bool_or_like (Xapian::Internal::OrContext &ctx, Xapian::Internal::QueryOptimiser *qopt, Xapian::Internal::TermFreqs *termfreqs) const
 
virtual void postlist_sub_or_like (Xapian::Internal::OrContext &ctx, Xapian::Internal::QueryOptimiser *qopt, double factor, Xapian::Internal::TermFreqs *termfreqs, bool keep_zero_weight=true) const
 
virtual void postlist_sub_xor (Xapian::Internal::XorContext &ctx, Xapian::Internal::QueryOptimiser *qopt, double factor, Xapian::Internal::TermFreqs *termfreqs) const
 
virtual termcount get_length () const noexcept
 
virtual size_t get_num_subqueries () const noexcept
 
virtual const Query get_subquery (size_t n) const
 
virtual termcount get_wqf () const
 
virtual termpos get_pos () const
 
virtual void gather_terms (void *void_terms) const
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Attributes

Xapian::Internal::opt_intrusive_ptr< PostingSourcesource
 

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

Constructor & Destructor Documentation

◆ QueryPostingSource()

Xapian::Internal::QueryPostingSource::QueryPostingSource ( PostingSource source_)
explicit

Definition at line 1304 of file queryinternal.cc.

References Xapian::PostingSource::release(), and source.

Member Function Documentation

◆ get_description()

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

Implements Xapian::Query::Internal.

Definition at line 1325 of file queryinternal.cc.

References source.

◆ get_type()

Query::op Xapian::Internal::QueryPostingSource::get_type ( ) const
virtualnoexcept

Implements Xapian::Query::Internal.

Definition at line 1319 of file queryinternal.cc.

References Xapian::Query::LEAF_POSTING_SOURCE.

◆ postlist()

PostListAndEstimate Xapian::Internal::QueryPostingSource::postlist ( QueryOptimiser qopt,
double  factor,
TermFreqs termfreqs 
) const
virtual

◆ serialise()

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

Implements Xapian::Query::Internal.

Definition at line 2548 of file queryinternal.cc.

References pack_string(), and source.

Member Data Documentation

◆ source

Xapian::Internal::opt_intrusive_ptr<PostingSource> Xapian::Internal::QueryPostingSource::source
private

Definition at line 85 of file queryinternal.h.

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


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