PostlistChunkReader Class Reference

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

List of all members.

Public Member Functions

 PostlistChunkReader (Xapian::docid first_did, const string &data_)
 Initialise the postlist chunk reader.
Xapian::docid get_docid () const
Xapian::termcount get_wdf () const
flint_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
flint_doclen_t doclength


Detailed Description

PostlistChunkReader is essentially an iterator wrapper around a postlist chunk.

It simply iterates through the entries in a postlist.

Definition at line 261 of file flint_postlist.cc.


Constructor & Destructor Documentation

PostlistChunkReader::PostlistChunkReader ( 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 268 of file flint_postlist.cc.

References read_wdf_and_length().


Member Function Documentation

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

Definition at line 274 of file flint_postlist.cc.

Referenced by FlintPostListTable::merge_changes().

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

Definition at line 277 of file flint_postlist.cc.

Referenced by FlintPostListTable::merge_changes().

flint_doclen_t PostlistChunkReader::get_doclength (  )  const [inline]

Definition at line 280 of file flint_postlist.cc.

References DEBUGCALL, and RETURN.

Referenced by FlintPostListTable::merge_changes().

bool PostlistChunkReader::is_at_end (  )  const [inline]

Definition at line 285 of file flint_postlist.cc.

Referenced by FlintPostListTable::merge_changes().

void PostlistChunkReader::next (  ) 

Advance to the next entry.

Set at_end if we run off the end.

Definition at line 307 of file flint_postlist.cc.

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

Referenced by FlintPostListTable::merge_changes().


Member Data Documentation

string PostlistChunkReader::data [private]

Definition at line 294 of file flint_postlist.cc.

const char* PostlistChunkReader::pos [private]

Definition at line 296 of file flint_postlist.cc.

Referenced by next().

const char* PostlistChunkReader::end [private]

Definition at line 297 of file flint_postlist.cc.

Referenced by next().

bool PostlistChunkReader::at_end [private]

Definition at line 299 of file flint_postlist.cc.

Referenced by next().

Xapian::docid PostlistChunkReader::did [private]

Definition at line 301 of file flint_postlist.cc.

Referenced by next().

Xapian::termcount PostlistChunkReader::wdf [private]

Definition at line 302 of file flint_postlist.cc.

Referenced by next().

flint_doclen_t PostlistChunkReader::doclength [private]

Definition at line 303 of file flint_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.