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 |
It simply iterates through the entries in a postlist.
Definition at line 261 of file flint_postlist.cc.
PostlistChunkReader::PostlistChunkReader | ( | Xapian::docid | first_did, | |
const string & | data_ | |||
) | [inline] |
Initialise the postlist chunk reader.
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().
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().
string PostlistChunkReader::data [private] |
Definition at line 294 of file flint_postlist.cc.
const char* PostlistChunkReader::pos [private] |
const char* PostlistChunkReader::end [private] |
bool PostlistChunkReader::at_end [private] |
Xapian::docid PostlistChunkReader::did [private] |
Xapian::termcount PostlistChunkReader::wdf [private] |
flint_doclen_t PostlistChunkReader::doclength [private] |