#include <flint_alldocspostlist.h>


Public Member Functions | |
| FlintAllDocsPostList (Xapian::Internal::RefCntPtr< const FlintDatabase > db_, Xapian::doccount doccount_) | |
| Xapian::doccount | get_termfreq () const |
| Return the exact term frequency. | |
| Xapian::docid | get_docid () const |
| Return the current docid. | |
| Xapian::termcount | 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 33 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] |
| 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 127 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 133 of file flint_alldocspostlist.cc.
References current_did, doccount, and Xapian::Internal::str().
| Xapian::docid FlintAllDocsPostList::get_docid | ( | ) | const [virtual] |
Return the current docid.
Implements Xapian::PostingIterator::Internal.
Definition at line 39 of file flint_alldocspostlist.cc.
References current_did.
| Xapian::termcount FlintAllDocsPostList::get_doclength | ( | ) | const [virtual] |
Return the length of current document.
Implements Xapian::PostingIterator::Internal.
Definition at line 45 of file flint_alldocspostlist.cc.
References Assert, current_did, cursor, F_unpack_uint(), LOGCALL, and RETURN.
| 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 33 of file flint_alldocspostlist.cc.
References doccount.
| 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 72 of file flint_alldocspostlist.cc.
References Assert, current_did, LOGCALL, 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 101 of file flint_alldocspostlist.cc.
References Assert, at_end(), cursor, LOGCALL, read_did_from_current_key(), and RETURN.
| 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 80 of file flint_alldocspostlist.cc.
References current_did, cursor, F_unpack_uint_preserving_sort(), LOGCALL, 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 110 of file flint_alldocspostlist.cc.
References at_end(), current_did, cursor, F_pack_uint_preserving_sort(), LOGCALL, read_did_from_current_key(), and RETURN.
The current document id.
Definition at line 53 of file flint_alldocspostlist.h.
Referenced by get_description(), get_docid(), get_doclength(), get_wdf(), read_did_from_current_key(), and skip_to().
AutoPtr<FlintCursor> FlintAllDocsPostList::cursor [private] |
Cursor running over termlist table keys.
Definition at line 50 of file flint_alldocspostlist.h.
Referenced by at_end(), FlintAllDocsPostList(), get_doclength(), next(), read_did_from_current_key(), and skip_to().
Xapian::Internal::RefCntPtr<const FlintDatabase> FlintAllDocsPostList::db [private] |
The number of documents in the database.
Definition at line 47 of file flint_alldocspostlist.h.
Referenced by get_description(), and get_termfreq().