

Public Member Functions | |
| 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 64 of file flint_compact.cc.
| FlintCompact::PostlistCursor::PostlistCursor | ( | FlintTable * | in, | |
| Xapian::docid | offset_ | |||
| ) | [inline] |
| FlintCompact::PostlistCursor::~PostlistCursor | ( | ) | [inline] |
| bool FlintCompact::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 84 of file flint_compact.cc.
References cf, FlintCursor::current_key, FlintCursor::current_tag, F_unpack_string_preserving_sort(), F_unpack_uint(), F_unpack_uint_preserving_sort(), firstdid, FlintCompact::is_metainfo_key(), FlintCompact::is_user_metadata_key(), key, FlintCursor::next(), offset, FlintCursor::read_tag(), tag, and tf.
Referenced by FlintCompact::merge_postlists(), and PostlistCursor().
Definition at line 70 of file flint_compact.cc.
Referenced by FlintCompact::merge_postlists(), and next().
Definition at line 69 of file flint_compact.cc.
Referenced by FlintCompact::merge_postlists(), next(), and FlintCompact::PostlistCursorGt::operator()().
Definition at line 68 of file flint_compact.cc.
Referenced by FlintCompact::merge_postlists(), next(), and FlintCompact::PostlistCursorGt::operator()().
Definition at line 68 of file flint_compact.cc.
Referenced by FlintCompact::merge_postlists(), and next().
Definition at line 70 of file flint_compact.cc.
Referenced by FlintCompact::merge_postlists(), and next().