#include <flint_alldocspostlist.h>
Inheritance diagram for FlintAllDocsPostList:
Public Member Functions | |
FlintAllDocsPostList (Xapian::Internal::RefCntPtr< const FlintDatabase > db_, Xapian::doccount doccount_) | |
~FlintAllDocsPostList () | |
Xapian::doccount | get_termfreq () const |
Return the exact term frequency. | |
Xapian::docid | get_docid () const |
Return the current docid. | |
Xapian::doclength | get_doclength () const |
Return the length of current document. | |
Xapian::termcount | get_wdf () const |
Return the wdf for the document at the current position. | |
PostList * | next (Xapian::weight w_min) |
Advance the current position to the next document in the postlist. | |
PostList * | skip_to (Xapian::docid desired_did, Xapian::weight w_min) |
Skip forward to the specified docid. | |
bool | at_end () const |
Return true if the current position is past the last entry in this list. | |
std::string | get_description () const |
Return a string description of this object. | |
Private Member Functions | |
void | operator= (const FlintAllDocsPostList &) |
Don't allow assignment. | |
FlintAllDocsPostList (const FlintAllDocsPostList &) | |
Don't allow copying. | |
PostList * | read_did_from_current_key () |
Set current_did from cursor->current_key. | |
Private Attributes | |
Xapian::Internal::RefCntPtr< const FlintDatabase > | db |
The database we're iterating over. | |
Xapian::doccount | doccount |
The number of documents in the database. | |
AutoPtr< FlintCursor > | cursor |
Cursor running over termlist table keys. | |
Xapian::docid | current_did |
The current document id. |
Definition at line 28 of file flint_alldocspostlist.h.
FlintAllDocsPostList::FlintAllDocsPostList | ( | const FlintAllDocsPostList & | ) | [private] |
Don't allow copying.
FlintAllDocsPostList::FlintAllDocsPostList | ( | Xapian::Internal::RefCntPtr< const FlintDatabase > | db_, | |
Xapian::doccount | doccount_ | |||
) | [inline] |
FlintAllDocsPostList::~FlintAllDocsPostList | ( | ) |
Definition at line 32 of file flint_alldocspostlist.cc.
void FlintAllDocsPostList::operator= | ( | const FlintAllDocsPostList & | ) | [private] |
Don't allow assignment.
PostList * FlintAllDocsPostList::read_did_from_current_key | ( | ) | [private] |
Set current_did from cursor->current_key.
Definition at line 84 of file flint_alldocspostlist.cc.
References current_did, cursor, DEBUGCALL, RETURN, and unpack_uint_preserving_sort().
Xapian::doccount FlintAllDocsPostList::get_termfreq | ( | ) | const [virtual] |
Return the exact term frequency.
Leaf postlists have an exact termfreq, which get_termfreq_min(), get_termfreq_max(), and get_termfreq_est() all report.
Implements LeafPostList.
Definition at line 37 of file flint_alldocspostlist.cc.
References doccount.
Xapian::docid FlintAllDocsPostList::get_docid | ( | ) | const [virtual] |
Return the current docid.
Implements Xapian::PostingIterator::Internal.
Definition at line 43 of file flint_alldocspostlist.cc.
References current_did.
Xapian::doclength FlintAllDocsPostList::get_doclength | ( | ) | const [virtual] |
Return the length of current document.
Implements Xapian::PostingIterator::Internal.
Definition at line 49 of file flint_alldocspostlist.cc.
References Assert, current_did, cursor, DEBUGCALL, RETURN, and unpack_uint().
Xapian::termcount FlintAllDocsPostList::get_wdf | ( | ) | const [virtual] |
Return the wdf for the document at the current position.
The default implementation throws Xapian::UnimplementedError.
Reimplemented from Xapian::PostingIterator::Internal.
Definition at line 76 of file flint_alldocspostlist.cc.
References Assert, current_did, DEBUGCALL, and RETURN.
PostList * FlintAllDocsPostList::next | ( | Xapian::weight | w_min | ) | [virtual] |
Advance the current position to the next document in the postlist.
The list starts before the first entry in the list, so next() must be called before any methods which need the context of the current position.
w_min | The minimum weight contribution that is needed (this is just a hint which PostList subclasses may ignore). |
Implements Xapian::PostingIterator::Internal.
Definition at line 106 of file flint_alldocspostlist.cc.
References Assert, at_end(), cursor, DEBUGCALL, read_did_from_current_key(), and RETURN.
PostList * FlintAllDocsPostList::skip_to | ( | Xapian::docid | , | |
Xapian::weight | w_min | |||
) | [virtual] |
Skip forward to the specified docid.
If the specified docid isn't in the list, position ourselves on the first document after it (or at_end() if no greater docids are present).
w_min | The minimum weight contribution that is needed (this is just a hint which PostList subclasses may ignore). |
Implements Xapian::PostingIterator::Internal.
Definition at line 115 of file flint_alldocspostlist.cc.
References at_end(), current_did, cursor, DEBUGCALL, pack_uint_preserving_sort(), read_did_from_current_key(), and RETURN.
bool FlintAllDocsPostList::at_end | ( | ) | const [virtual] |
Return true if the current position is past the last entry in this list.
Implements Xapian::PostingIterator::Internal.
Definition at line 133 of file flint_alldocspostlist.cc.
string FlintAllDocsPostList::get_description | ( | ) | const [virtual] |
Return a string description of this object.
Implements Xapian::PostingIterator::Internal.
Definition at line 139 of file flint_alldocspostlist.cc.
References current_did, doccount, and om_tostring().
Xapian::Internal::RefCntPtr<const FlintDatabase> FlintAllDocsPostList::db [private] |
The number of documents in the database.
Definition at line 42 of file flint_alldocspostlist.h.
Referenced by get_description(), and get_termfreq().
AutoPtr<FlintCursor> FlintAllDocsPostList::cursor [private] |
Cursor running over termlist table keys.
Definition at line 45 of file flint_alldocspostlist.h.
Referenced by at_end(), FlintAllDocsPostList(), get_doclength(), next(), read_did_from_current_key(), and skip_to().
The current document id.
Definition at line 48 of file flint_alldocspostlist.h.
Referenced by get_description(), get_docid(), get_doclength(), get_wdf(), read_did_from_current_key(), and skip_to().