xapian-core
1.4.27
|
#include <multi_termlist.h>
Public Member Functions | |
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... | |
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... | |
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 (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... | |
~MultiTermList () | |
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... | |
Private Member Functions | |
MultiTermList (TermList *tl_, const Xapian::Database &db_, size_t db_index_) | |
Private Attributes | |
TermList * | tl |
const Xapian::Database & | db |
size_t | db_index |
Friends | |
class | Xapian::Database |
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 Xapian::TermIterator::Internal | |
Internal () | |
Only constructable as a base class for derived classes. More... | |
Definition at line 29 of file multi_termlist.h.
|
private |
Definition at line 31 of file multi_termlist.cc.
MultiTermList::~MultiTermList | ( | ) |
Definition at line 38 of file multi_termlist.cc.
References tl.
|
virtual |
Collate weighting information for the current term.
Reimplemented from Xapian::TermIterator::Internal.
Definition at line 50 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::accumulate_stats(), and tl.
|
virtual |
Return true if the current position is past the last term in this list.
Implements Xapian::TermIterator::Internal.
Definition at line 81 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::at_end(), and tl.
|
virtual |
Return approximate size of this termlist.
Implements Xapian::TermIterator::Internal.
Definition at line 44 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_approx_size(), and tl.
|
virtual |
Return the term frequency for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 66 of file multi_termlist.cc.
References db, Xapian::Database::get_termfreq(), Xapian::TermIterator::Internal::get_termname(), and tl.
|
virtual |
Return the termname at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 56 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_termname(), and tl.
|
virtual |
Return the wdf for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 61 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_wdf(), and tl.
|
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 71 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::next(), and tl.
|
virtual |
Return a PositionIterator for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 93 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::positionlist_begin(), and tl.
|
virtual |
Return the length of the position list for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 87 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::positionlist_count(), and tl.
|
virtual |
Skip forward to the specified term.
If the specified term isn't in the list, position ourselves on the first term after tname (or at_end() if no terms after tname exist).
Implements Xapian::TermIterator::Internal.
Definition at line 76 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::skip_to(), and tl.
|
friend |
Definition at line 30 of file multi_termlist.h.
|
private |
Definition at line 33 of file multi_termlist.h.
Referenced by get_termfreq().
|
private |
Definition at line 34 of file multi_termlist.h.
|
private |
Definition at line 32 of file multi_termlist.h.
Referenced by accumulate_stats(), at_end(), get_approx_size(), get_termfreq(), get_termname(), get_wdf(), next(), positionlist_begin(), positionlist_count(), skip_to(), and ~MultiTermList().