
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 |
| 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 |
It simply iterates through the entries in a postlist.
Definition at line 256 of file chert_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 273 of file chert_postlist.cc.
References at_end, end, pos, read_wdf(), and wdf.
| Xapian::docid PostlistChunkReader::get_docid | ( | ) | const [inline] |
Definition at line 279 of file chert_postlist.cc.
References did.
Referenced by ChertPostListTable::merge_changes().
| Xapian::termcount PostlistChunkReader::get_wdf | ( | ) | const [inline] |
Definition at line 282 of file chert_postlist.cc.
References wdf.
Referenced by ChertPostListTable::merge_changes().
| bool PostlistChunkReader::is_at_end | ( | ) | const [inline] |
Definition at line 286 of file chert_postlist.cc.
References at_end.
Referenced by ChertPostListTable::merge_changes().
| void PostlistChunkReader::next | ( | ) |
Advance to the next entry.
Set at_end if we run off the end.
Definition at line 296 of file chert_postlist.cc.
References at_end, did, end, pos, read_did_increase(), read_wdf(), and wdf.
Referenced by ChertPostListTable::merge_changes().
bool PostlistChunkReader::at_end [private] |
Definition at line 262 of file chert_postlist.cc.
Referenced by is_at_end(), next(), and PostlistChunkReader().
string PostlistChunkReader::data [private] |
Definition at line 257 of file chert_postlist.cc.
Xapian::docid PostlistChunkReader::did [private] |
const char* PostlistChunkReader::end [private] |
const char* PostlistChunkReader::pos [private] |
Xapian::termcount PostlistChunkReader::wdf [private] |
Definition at line 265 of file chert_postlist.cc.
Referenced by get_wdf(), next(), and PostlistChunkReader().