
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 258 of file brass_postlist.cc.
| Brass::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 275 of file brass_postlist.cc.
References at_end, end, pos, read_wdf(), and wdf.
| Xapian::docid Brass::PostlistChunkReader::get_docid | ( | ) | const [inline] |
Definition at line 281 of file brass_postlist.cc.
References did.
Referenced by BrassPostListTable::merge_changes(), and BrassPostListTable::merge_doclen_changes().
| Xapian::termcount Brass::PostlistChunkReader::get_wdf | ( | ) | const [inline] |
Definition at line 284 of file brass_postlist.cc.
References wdf.
Referenced by BrassPostListTable::merge_changes(), and BrassPostListTable::merge_doclen_changes().
| bool Brass::PostlistChunkReader::is_at_end | ( | ) | const [inline] |
Definition at line 288 of file brass_postlist.cc.
References at_end.
Referenced by BrassPostListTable::merge_changes(), and BrassPostListTable::merge_doclen_changes().
| void PostlistChunkReader::next | ( | ) |
Advance to the next entry.
Set at_end if we run off the end.
Definition at line 300 of file brass_postlist.cc.
References at_end, did, end, pos, read_did_increase(), read_wdf(), and wdf.
Referenced by BrassPostListTable::merge_changes(), and BrassPostListTable::merge_doclen_changes().
bool Brass::PostlistChunkReader::at_end [private] |
Definition at line 264 of file brass_postlist.cc.
Referenced by is_at_end(), next(), and PostlistChunkReader().
string Brass::PostlistChunkReader::data [private] |
Definition at line 259 of file brass_postlist.cc.
Xapian::docid Brass::PostlistChunkReader::did [private] |
const char* Brass::PostlistChunkReader::end [private] |
const char* Brass::PostlistChunkReader::pos [private] |
Definition at line 267 of file brass_postlist.cc.
Referenced by get_wdf(), next(), and PostlistChunkReader().