Public Member Functions | |
PostlistCursor (Btree *in, Xapian::docid offset_) | |
bool | next () |
Advance to the next key. | |
PostlistCursor (FlintTable *in, Xapian::docid offset_) | |
~PostlistCursor () | |
bool | next () |
Advance to the next key. | |
Public Attributes | |
string | key |
string | tag |
Xapian::docid | firstdid |
Xapian::termcount | tf |
Xapian::termcount | cf |
Private Attributes | |
Xapian::docid | offset |
Definition at line 69 of file quartzcompact.cc.
PostlistCursor::PostlistCursor | ( | Btree * | in, | |
Xapian::docid | offset_ | |||
) | [inline] |
PostlistCursor::PostlistCursor | ( | FlintTable * | in, | |
Xapian::docid | offset_ | |||
) | [inline] |
PostlistCursor::~PostlistCursor | ( | ) | [inline] |
bool PostlistCursor::next | ( | ) | [inline] |
Advance to the next key.
If cursor is unpositioned, the result is simply false.
If cursor is positioned, and points to the very last item in the Btree the cursor is made unpositioned, and the result is false. Otherwise the cursor is moved to the next item in the B-tree, and the result is true.
Effectively, FlintCursor::next() loses the position of BC when it drops off the end of the list of items. If this is awkward, one can always arrange for a key to be present which has a rightmost position in a set of keys,
Reimplemented from FlintCursor.
Definition at line 83 of file quartzcompact.cc.
References cf, FlintCursor::current_key, FlintCursor::current_tag, firstdid, key, Bcursor::next(), offset, Bcursor::read_tag(), tag, tf, unpack_string_preserving_sort(), unpack_uint(), and unpack_uint_preserving_sort().
Referenced by main(), merge_postlists(), and PostlistCursor().
bool PostlistCursor::next | ( | ) | [inline] |
Advance to the next key.
If cursor is unpositioned, the result is simply false.
If cursor is positioned, and points to the very last item in the Btree the cursor is made unpositioned, and the result is false. Otherwise the cursor is moved to the next item in the B-tree, and the result is true.
Effectively, FlintCursor::next() loses the position of BC when it drops off the end of the list of items. If this is awkward, one can always arrange for a key to be present which has a rightmost position in a set of keys,
Reimplemented from FlintCursor.
Definition at line 102 of file xapian-compact.cc.
References cf, FlintCursor::current_key, FlintCursor::current_tag, firstdid, is_metainfo_key(), is_user_metadata_key(), key, FlintCursor::next(), offset, Bcursor::read_tag(), tag, tf, unpack_string_preserving_sort(), unpack_uint(), and unpack_uint_preserving_sort().
Xapian::docid PostlistCursor::offset [private] |
string PostlistCursor::key |
Definition at line 72 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), next(), PostlistCursorGt::operator()(), and CursorGt::operator()().
string PostlistCursor::tag |
Definition at line 72 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), and next().
Definition at line 73 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), next(), PostlistCursorGt::operator()(), and CursorGt::operator()().
Definition at line 74 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), and next().
Definition at line 74 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), and next().