QPostlistChunkReader Class Reference

QPostlistChunkReader is essentially an iterator wrapper around a postlist chunk. More...

List of all members.

Public Member Functions

 QPostlistChunkReader (Xapian::docid first_did, const string &data_)
 Initialise the postlist chunk reader.
Xapian::docid get_docid () const
Xapian::termcount get_wdf () const
quartz_doclen_t get_doclength () const
bool is_at_end () const
void next ()
 Advance to the next entry.

Private Attributes

string data
const char * pos
const char * end
bool at_end
Xapian::docid did
Xapian::termcount wdf
quartz_doclen_t doclength


Detailed Description

QPostlistChunkReader is essentially an iterator wrapper around a postlist chunk.

It simply iterates through the entries in a postlist.

Definition at line 274 of file quartz_postlist.cc.


Constructor & Destructor Documentation

QPostlistChunkReader::QPostlistChunkReader ( Xapian::docid  first_did,
const string &  data_ 
) [inline]

Initialise the postlist chunk reader.

Parameters:
first_did First document id in this chunk.
data The tag string with the header removed.

Definition at line 281 of file quartz_postlist.cc.

References read_wdf_and_length().


Member Function Documentation

Xapian::docid QPostlistChunkReader::get_docid (  )  const [inline]

Definition at line 287 of file quartz_postlist.cc.

Referenced by QuartzPostListTable::merge_changes().

Xapian::termcount QPostlistChunkReader::get_wdf (  )  const [inline]

Definition at line 290 of file quartz_postlist.cc.

Referenced by QuartzPostListTable::merge_changes().

quartz_doclen_t QPostlistChunkReader::get_doclength (  )  const [inline]

Definition at line 293 of file quartz_postlist.cc.

Referenced by QuartzPostListTable::merge_changes().

bool QPostlistChunkReader::is_at_end (  )  const [inline]

Definition at line 297 of file quartz_postlist.cc.

Referenced by QuartzPostListTable::merge_changes().

void QPostlistChunkReader::next (  ) 

Advance to the next entry.

Set at_end if we run off the end.

Definition at line 319 of file quartz_postlist.cc.

References at_end, did, doclength, end, pos, read_did_increase(), read_wdf_and_length(), and wdf.

Referenced by QuartzPostListTable::merge_changes().


Member Data Documentation

string QPostlistChunkReader::data [private]

Definition at line 306 of file quartz_postlist.cc.

const char* QPostlistChunkReader::pos [private]

Definition at line 308 of file quartz_postlist.cc.

Referenced by next().

const char* QPostlistChunkReader::end [private]

Definition at line 309 of file quartz_postlist.cc.

Referenced by next().

bool QPostlistChunkReader::at_end [private]

Definition at line 311 of file quartz_postlist.cc.

Referenced by next().

Xapian::docid QPostlistChunkReader::did [private]

Definition at line 313 of file quartz_postlist.cc.

Referenced by next().

Xapian::termcount QPostlistChunkReader::wdf [private]

Definition at line 314 of file quartz_postlist.cc.

Referenced by next().

quartz_doclen_t QPostlistChunkReader::doclength [private]

Definition at line 315 of file quartz_postlist.cc.

Referenced by next().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.