xapian-core
1.4.26
|
A termlist which ORs two termlists together, adding term frequencies. More...
#include <ortermlist.h>
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... | |
TermList * | next () |
Advance the current position to the next term in the termlist. More... | |
TermList * | skip_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 | |
TermList * | left |
The two TermList objects we're merging. More... | |
TermList * | right |
std::string | left_current |
The current term for left and right respectively. More... | |
std::string | right_current |
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.
Definition at line 83 of file ortermlist.h.
|
virtual |
Return the term frequency for the term at the current position.
Reimplemented from OrTermList.
Definition at line 200 of file ortermlist.cc.