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 |
It simply iterates through the entries in a postlist.
Definition at line 274 of file quartz_postlist.cc.
| QPostlistChunkReader::QPostlistChunkReader | ( | 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 281 of file quartz_postlist.cc.
References read_wdf_and_length().
| 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().
string QPostlistChunkReader::data [private] |
Definition at line 306 of file quartz_postlist.cc.
const char* QPostlistChunkReader::pos [private] |
const char* QPostlistChunkReader::end [private] |
bool QPostlistChunkReader::at_end [private] |
Xapian::docid QPostlistChunkReader::did [private] |
Xapian::termcount QPostlistChunkReader::wdf [private] |