Public Member Functions | |
PositionCursor (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 157 of file quartzcompact.cc.
PositionCursor::PositionCursor | ( | Btree * | in, | |
Xapian::docid | offset_ | |||
) | [inline] |
bool PositionCursor::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 169 of file quartzcompact.cc.
References Bcursor::current_key, Bcursor::current_tag, key, Bcursor::next(), offset, pack_uint(), Bcursor::read_tag(), tag, and unpack_uint().
Referenced by PositionCursor().
Xapian::docid PositionCursor::offset [private] |
string PositionCursor::key |
string PositionCursor::tag |