ChertCompact::PostlistCursor Class Reference

Inheritance diagram for ChertCompact::PostlistCursor:

Inheritance graph
[legend]
Collaboration diagram for ChertCompact::PostlistCursor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PostlistCursor (ChertTable *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


Detailed Description

Definition at line 83 of file chert_compact.cc.


Constructor & Destructor Documentation

ChertCompact::PostlistCursor::PostlistCursor ( ChertTable in,
Xapian::docid  offset_ 
) [inline]

Definition at line 91 of file chert_compact.cc.

References ChertCursor::find_entry(), and next().

ChertCompact::PostlistCursor::~PostlistCursor (  )  [inline]

Definition at line 98 of file chert_compact.cc.

References ChertCursor::get_table().


Member Function Documentation

bool ChertCompact::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, ChertCursor::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 ChertCursor.

Definition at line 103 of file chert_compact.cc.

References cf, ChertCursor::current_key, ChertCursor::current_tag, firstdid, ChertCompact::is_doclenchunk_key(), ChertCompact::is_metainfo_key(), ChertCompact::is_user_metadata_key(), ChertCompact::is_valuechunk_key(), ChertCompact::is_valuestats_key(), key, ChertCursor::next(), offset, pack_uint(), pack_uint_preserving_sort(), ChertCursor::read_tag(), tag, tf, unpack_string_preserving_sort(), unpack_uint(), and unpack_uint_preserving_sort().

Referenced by ChertCompact::merge_postlists(), and PostlistCursor().


Member Data Documentation

Definition at line 89 of file chert_compact.cc.

Referenced by ChertCompact::merge_postlists(), and next().

Definition at line 84 of file chert_compact.cc.

Referenced by next().

Definition at line 87 of file chert_compact.cc.

Referenced by ChertCompact::merge_postlists(), and next().

Definition at line 89 of file chert_compact.cc.

Referenced by ChertCompact::merge_postlists(), and next().


The documentation for this class was generated from the following file:

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.