xapian-core  1.4.21
Public Member Functions | Private Attributes | List of all members
Chert::PostlistChunkReader Class Reference

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

+ Collaboration diagram for Chert::PostlistChunkReader:

Public Member Functions

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

Private Attributes

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

Detailed Description

PostlistChunkReader is essentially an iterator wrapper around a postlist chunk.

It simply iterates through the entries in a postlist.

Definition at line 253 of file chert_postlist.cc.

Constructor & Destructor Documentation

◆ PostlistChunkReader()

Chert::PostlistChunkReader::PostlistChunkReader ( Xapian::docid  first_did,
const string &  data_ 
)
inline

Initialise the postlist chunk reader.

Parameters
first_didFirst document id in this chunk.
dataThe tag string with the header removed.

Definition at line 270 of file chert_postlist.cc.

References read_wdf().

Member Function Documentation

◆ get_docid()

Xapian::docid Chert::PostlistChunkReader::get_docid ( ) const
inline

Definition at line 276 of file chert_postlist.cc.

Referenced by ChertPostListTable::merge_changes().

◆ get_wdf()

Xapian::termcount Chert::PostlistChunkReader::get_wdf ( ) const
inline

Definition at line 279 of file chert_postlist.cc.

Referenced by ChertPostListTable::merge_changes().

◆ is_at_end()

bool Chert::PostlistChunkReader::is_at_end ( ) const
inline

Definition at line 283 of file chert_postlist.cc.

References ChertTable::next().

Referenced by ChertPostListTable::merge_changes().

◆ next()

void PostlistChunkReader::next ( )

Advance to the next entry.

Set at_end if we run off the end.

Definition at line 295 of file chert_postlist.cc.

References read_did_increase(), and read_wdf().

Referenced by ChertPostListTable::merge_changes().

Member Data Documentation

◆ at_end

bool Chert::PostlistChunkReader::at_end
private

Definition at line 259 of file chert_postlist.cc.

◆ data

string Chert::PostlistChunkReader::data
private

Definition at line 254 of file chert_postlist.cc.

◆ did

Xapian::docid Chert::PostlistChunkReader::did
private

Definition at line 261 of file chert_postlist.cc.

◆ end

const char* Chert::PostlistChunkReader::end
private

Definition at line 257 of file chert_postlist.cc.

◆ pos

const char* Chert::PostlistChunkReader::pos
private

Definition at line 256 of file chert_postlist.cc.

◆ wdf

Xapian::termcount Chert::PostlistChunkReader::wdf
private

Definition at line 262 of file chert_postlist.cc.


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