#include <multi_termlist.h>


Public Member Functions | |
| Xapian::termcount | get_approx_size () const |
| Return approximate size of this termlist. | |
| void | accumulate_stats (Xapian::Internal::ExpandStats &stats) const |
| Collate weighting information for the current term. | |
| string | get_termname () const |
| Return the termname at the current position. | |
| Xapian::termcount | get_wdf () const |
| Return the wdf for the term at the current position. | |
| Xapian::doccount | get_termfreq () const |
| Return the term frequency for the term at the current position. | |
| TermList * | next () |
| Advance the current position to the next term in the termlist. | |
| TermList * | skip_to (const std::string &term) |
| Skip forward to the specified term. | |
| bool | at_end () const |
| Return true if the current position is past the last term in this list. | |
| Xapian::termcount | positionlist_count () const |
| Return the length of the position list for the current position. | |
| Xapian::PositionIterator | positionlist_begin () const |
| Return a PositionIterator for the current position. | |
| ~MultiTermList () | |
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 |
| double | termfreq_factor |
Friends | |
| class | Xapian::Database |
Definition at line 28 of file multi_termlist.h.
| MultiTermList::MultiTermList | ( | TermList * | tl_, | |
| const Xapian::Database & | db_, | |||
| size_t | db_index_ | |||
| ) | [private] |
Definition at line 30 of file multi_termlist.cc.
References db, db_index, Xapian::Database::get_doccount(), Xapian::Database::internal, LOGLINE, and termfreq_factor.
| MultiTermList::~MultiTermList | ( | ) |
| void MultiTermList::accumulate_stats | ( | Xapian::Internal::ExpandStats & | stats | ) | const [virtual] |
Collate weighting information for the current term.
Reimplemented from Xapian::TermIterator::Internal.
Definition at line 52 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::accumulate_stats(), db_index, Xapian::Internal::ExpandStats::db_index, and tl.
| bool MultiTermList::at_end | ( | ) | const [virtual] |
Return true if the current position is past the last term in this list.
Implements Xapian::TermIterator::Internal.
Definition at line 87 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::at_end(), and tl.
| Xapian::termcount MultiTermList::get_approx_size | ( | ) | const [virtual] |
Return approximate size of this termlist.
Implements Xapian::TermIterator::Internal.
Definition at line 46 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_approx_size(), and tl.
| Xapian::doccount MultiTermList::get_termfreq | ( | ) | const [virtual] |
Return the term frequency for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 71 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_termfreq(), termfreq_factor, and tl.
| string MultiTermList::get_termname | ( | ) | const [virtual] |
Return the termname at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 61 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_termname(), and tl.
| Xapian::termcount MultiTermList::get_wdf | ( | ) | const [virtual] |
Return the wdf for the term at the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 66 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::get_wdf(), and tl.
| TermList * MultiTermList::next | ( | ) | [virtual] |
Advance the current position to the next term in the termlist.
The list starts before the first term in the list, so next() must be called before any methods which need the context of the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 77 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::next(), and tl.
| Xapian::PositionIterator MultiTermList::positionlist_begin | ( | ) | const [virtual] |
Return a PositionIterator for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 99 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::positionlist_begin(), and tl.
| Xapian::termcount MultiTermList::positionlist_count | ( | ) | const [virtual] |
Return the length of the position list for the current position.
Implements Xapian::TermIterator::Internal.
Definition at line 93 of file multi_termlist.cc.
References Xapian::TermIterator::Internal::positionlist_count(), and tl.
| TermList* MultiTermList::skip_to | ( | const std::string & | term | ) | [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.
friend class Xapian::Database [friend] |
Definition at line 29 of file multi_termlist.h.
const Xapian::Database& MultiTermList::db [private] |
size_t MultiTermList::db_index [private] |
Definition at line 33 of file multi_termlist.h.
Referenced by accumulate_stats(), and MultiTermList().
double MultiTermList::termfreq_factor [private] |
TermList* MultiTermList::tl [private] |
Definition at line 31 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(), and ~MultiTermList().