xapian-core  1.4.25
Public Member Functions | List of all members
FreqAdderOrTermList Class Reference

A termlist which ORs two termlists together, adding term frequencies. More...

#include <ortermlist.h>

+ Inheritance diagram for FreqAdderOrTermList:
+ Collaboration diagram for FreqAdderOrTermList:

Public Member Functions

 FreqAdderOrTermList (TermList *left_, TermList *right_)
 
Xapian::doccount get_termfreq () const
 Return the term frequency for the term at the current position. More...
 
- Public Member Functions inherited from OrTermList
 OrTermList (TermList *left_, TermList *right_)
 
 ~OrTermList ()
 
Xapian::termcount get_approx_size () const
 Return approximate size of this termlist. More...
 
void accumulate_stats (Xapian::Internal::ExpandStats &stats) const
 Collate weighting information for the current term. More...
 
std::string get_termname () const
 Return the termname at the current position. More...
 
Xapian::termcount get_wdf () const
 Return the wdf for the term at the current position. More...
 
TermListnext ()
 Advance the current position to the next term in the termlist. More...
 
TermListskip_to (const std::string &term)
 Skip forward to the specified term. More...
 
bool at_end () const
 Return true if the current position is past the last term in this list. More...
 
Xapian::termcount positionlist_count () const
 Return the length of the position list for the current position. More...
 
Xapian::PositionIterator positionlist_begin () const
 Return a PositionIterator for the current position. More...
 
- Public Member Functions inherited from Xapian::TermIterator::Internal
virtual ~Internal ()
 We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More...
 
virtual const std::vector< Xapian::termpos > * get_vector_termpos () const
 Get pointer to vector<termpos> if that's the internal representation. More...
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Additional Inherited Members

- Public Attributes inherited from Xapian::TermIterator::Internal
size_t shard_index = 0
 Which shard of a multidatabase this is from. More...
 
- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 
- Protected Member Functions inherited from OrTermList
void check_started () const
 Check that next() has already been called. More...
 
- Protected Member Functions inherited from Xapian::TermIterator::Internal
 Internal ()
 Only constructable as a base class for derived classes. More...
 
- Protected Attributes inherited from OrTermList
TermListleft
 The two TermList objects we're merging. More...
 
TermListright
 
std::string left_current
 The current term for left and right respectively. More...
 
std::string right_current
 

Detailed Description

A termlist which ORs two termlists together, adding term frequencies.

This termlist is just like OrTermList, but adds the term frequencies of terms which appear in both sublists together, rather than asserting that the frequencies are equal. This is appropriate for spelling termlists.

Definition at line 81 of file ortermlist.h.

Constructor & Destructor Documentation

◆ FreqAdderOrTermList()

FreqAdderOrTermList::FreqAdderOrTermList ( TermList left_,
TermList right_ 
)
inline

Definition at line 83 of file ortermlist.h.

Member Function Documentation

◆ get_termfreq()

Xapian::doccount FreqAdderOrTermList::get_termfreq ( ) const
virtual

Return the term frequency for the term at the current position.

Reimplemented from OrTermList.

Definition at line 200 of file ortermlist.cc.

References LOGCALL, and RETURN.


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