

Public Member Functions | |
| PostlistCursor (BrassTable *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 83 of file brass_compact.cc.
| BrassCompact::PostlistCursor::PostlistCursor | ( | BrassTable * | in, | |
| Xapian::docid | offset_ | |||
| ) | [inline] |
| BrassCompact::PostlistCursor::~PostlistCursor | ( | ) | [inline] |
| bool BrassCompact::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, BrassCursor::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 BrassCursor.
Definition at line 103 of file brass_compact.cc.
References cf, BrassCursor::current_key, BrassCursor::current_tag, firstdid, BrassCompact::is_doclenchunk_key(), BrassCompact::is_metainfo_key(), BrassCompact::is_user_metadata_key(), BrassCompact::is_valuechunk_key(), BrassCompact::is_valuestats_key(), key, BrassCursor::next(), offset, pack_uint(), pack_uint_preserving_sort(), BrassCursor::read_tag(), tag, tf, unpack_string_preserving_sort(), unpack_uint(), and unpack_uint_preserving_sort().
Referenced by BrassCompact::merge_postlists(), and PostlistCursor().
Definition at line 89 of file brass_compact.cc.
Referenced by BrassCompact::merge_postlists(), and next().
Definition at line 88 of file brass_compact.cc.
Referenced by BrassCompact::merge_postlists(), next(), and BrassCompact::PostlistCursorGt::operator()().
Definition at line 87 of file brass_compact.cc.
Referenced by BrassCompact::merge_postlists(), next(), and BrassCompact::PostlistCursorGt::operator()().
Definition at line 87 of file brass_compact.cc.
Referenced by BrassCompact::merge_postlists(), and next().
Definition at line 89 of file brass_compact.cc.
Referenced by BrassCompact::merge_postlists(), and next().