Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::file::KeyfileDocListSegmentReader Class Reference

Provides a reader for DocInfoLists from a give segment in a File. More...

#include <KeyfileDocListSegmentReader.hpp>

List of all members.

Public Member Functions

 KeyfileDocListSegmentReader (File *stream, std::string &baseName, int segment, int readBufferSize)
 Instantiate for a given file.

 ~KeyfileDocListSegmentReader ()
Filefile ()
 Return the File this reader reads.

lemur::index::InvFPDocListnext ()
 Return the next DocInfoList in the segment.

bool operator< (const KeyfileDocListSegmentReader &other) const
 Compare two Readers for merging.

const lemur::index::InvFPDocListtop () const
 Return the current DocInfoList in the segment.

lemur::index::InvFPDocListtop ()
 Return the current DocInfoList in the segment.

void pop ()
 set the current DocInfoList to the next in the segment

int segment () const
 Return which segment this reader reads.

const std::string & name () const
 Return the base name of the File this reader reads.


Private Attributes

File_stream
ReadBuffer_file
lemur::index::InvFPDocList_top
int _segment
std::string _name


Detailed Description

Provides a reader for DocInfoLists from a give segment in a File.


Constructor & Destructor Documentation

lemur::file::KeyfileDocListSegmentReader::KeyfileDocListSegmentReader File stream,
std::string &  baseName,
int  segment,
int  readBufferSize
 

Instantiate for a given file.

lemur::file::KeyfileDocListSegmentReader::~KeyfileDocListSegmentReader  ) 
 


Member Function Documentation

lemur::file::File * lemur::file::KeyfileDocListSegmentReader::file  ) 
 

Return the File this reader reads.

const std::string & lemur::file::KeyfileDocListSegmentReader::name  )  const
 

Return the base name of the File this reader reads.

lemur::index::InvFPDocList * lemur::file::KeyfileDocListSegmentReader::next  ) 
 

Return the next DocInfoList in the segment.

bool lemur::file::KeyfileDocListSegmentReader::operator< const KeyfileDocListSegmentReader other  )  const
 

Compare two Readers for merging.

void lemur::file::KeyfileDocListSegmentReader::pop  ) 
 

set the current DocInfoList to the next in the segment

int lemur::file::KeyfileDocListSegmentReader::segment  )  const
 

Return which segment this reader reads.

lemur::index::InvFPDocList * lemur::file::KeyfileDocListSegmentReader::top  ) 
 

Return the current DocInfoList in the segment.

const lemur::index::InvFPDocList * lemur::file::KeyfileDocListSegmentReader::top  )  const
 

Return the current DocInfoList in the segment.


Member Data Documentation

ReadBuffer* lemur::file::KeyfileDocListSegmentReader::_file [private]
 

std::string lemur::file::KeyfileDocListSegmentReader::_name [private]
 

int lemur::file::KeyfileDocListSegmentReader::_segment [private]
 

File* lemur::file::KeyfileDocListSegmentReader::_stream [private]
 

lemur::index::InvFPDocList* lemur::file::KeyfileDocListSegmentReader::_top [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4