|
xapian-core
2.0.0
|
#include <ortermlist.h>
Inheritance diagram for OrTermList:
Collaboration diagram for OrTermList:Public Member Functions | |
| 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... | |
| Xapian::termcount | get_wdf () const |
| Return the wdf for the term at the current position. More... | |
| Xapian::doccount | get_termfreq () const |
| Return the term frequency 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 (std::string_view term) |
| Skip forward to the specified term. More... | |
| Xapian::termcount | positionlist_count () const |
| Return the length of the position list for the current position. More... | |
| PositionList * | positionlist_begin () const |
| Return PositionList 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... | |
| const std::string & | get_termname () const |
| Return the termname at the current position. More... | |
| virtual const Xapian::VecCOW< Xapian::termpos > * | get_vec_termpos () const |
| Get pointer to VecCOW<termpos> if that's the internal representation. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references. More... | |
Protected Member Functions | |
| 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 | |
| TermList * | left |
| The two TermList objects we're merging. More... | |
| TermList * | right |
| int | cmp = 0 |
| The result of left->get_termname().compare(right->get_termname()). More... | |
Protected Attributes inherited from Xapian::TermIterator::Internal | |
| std::string | current_term |
| The current term. 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... | |
Definition at line 32 of file ortermlist.h.
Definition at line 47 of file ortermlist.h.
| OrTermList::~OrTermList | ( | ) |
Definition at line 39 of file ortermlist.cc.
|
virtual |
Collate weighting information for the current term.
Reimplemented from Xapian::TermIterator::Internal.
Definition at line 56 of file ortermlist.cc.
References LOGCALL_VOID.
|
protected |
Check that next() has already been called.
Definition at line 33 of file ortermlist.cc.
References Assert.
|
virtual |
Return approximate size of this termlist.
Implements Xapian::TermIterator::Internal.
Definition at line 46 of file ortermlist.cc.
|
virtual |
Return the term frequency for the term at the current position.
Implements Xapian::TermIterator::Internal.
Reimplemented in FreqAdderOrTermList.
Definition at line 77 of file ortermlist.cc.
|
virtual |
Return the wdf for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 67 of file ortermlist.cc.
|
virtual |
Advance the current position to the next term in the termlist.
The list starts before the first term in the list, so next(), skip_to() or check() must be called before any methods which need the context of the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 88 of file ortermlist.cc.
References LOGCALL, Xapian::TermIterator::Internal::next(), and RETURN.
|
virtual |
Return PositionList for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 197 of file ortermlist.cc.
References Assert.
|
virtual |
Return the length of the position list for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 190 of file ortermlist.cc.
References Assert.
|
virtual |
Skip forward to the specified term.
If the specified term isn't in the list, position ourselves on the first term after term.
Implements Xapian::TermIterator::Internal.
Definition at line 151 of file ortermlist.cc.
References LOGCALL, RETURN, Xapian::TermIterator::Internal::skip_to(), and term.
|
protected |
The result of left->get_termname().compare(right->get_termname()).
Until next() is first called, this will be zero.
Definition at line 41 of file ortermlist.h.
|
protected |
The two TermList objects we're merging.
Definition at line 35 of file ortermlist.h.
|
protected |
Definition at line 35 of file ortermlist.h.