Public Member Functions | |
DocIDKeyedCursor (Btree *in, Xapian::docid offset_) | |
bool | next () |
Advance to the next key. | |
Public Attributes | |
string | key |
string | tag |
Private Attributes | |
Xapian::docid | offset |
Definition at line 125 of file quartzcompact.cc.
DocIDKeyedCursor::DocIDKeyedCursor | ( | Btree * | in, | |
Xapian::docid | offset_ | |||
) | [inline] |
bool DocIDKeyedCursor::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, Bcursor::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 Bcursor.
Definition at line 137 of file quartzcompact.cc.
References Bcursor::current_key, Bcursor::current_tag, is_metainfo_key(), key, Bcursor::next(), offset, pack_uint_last(), Bcursor::read_tag(), tag, and unpack_uint_last().
Referenced by DocIDKeyedCursor().
Xapian::docid DocIDKeyedCursor::offset [private] |
string DocIDKeyedCursor::key |
string DocIDKeyedCursor::tag |