#include <quartz_positionlist.h>
Inheritance diagram for QuartzPositionListTable:


Public Member Functions | |
| QuartzPositionListTable (string path_, bool readonly_) | |
| Create a new table object. | |
| void | set_positionlist (Xapian::docid did, const string &tname, Xapian::PositionIterator pos, const Xapian::PositionIterator &pos_end) |
| Set the position list for the given docid and termname. | |
| void | delete_positionlist (Xapian::docid did, const string &tname) |
| Delete the position list for the given docid and termname. | |
Definition at line 37 of file quartz_positionlist.h.
| QuartzPositionListTable::QuartzPositionListTable | ( | string | path_, | |
| bool | readonly_ | |||
| ) | [inline] |
Create a new table object.
This does not create the table on disk - the create() method must be called before the table is created on disk
This also does not open the table - the open() method must be called before use is made of the table.
| path_ | - Path at which the table is stored. | |
| readonly_ | - whether to open the table for read only access. | |
| blocksize_ | - Size of blocks to use. This parameter is only used when creating the table. |
Definition at line 53 of file quartz_positionlist.h.
| void QuartzPositionListTable::set_positionlist | ( | Xapian::docid | did, | |
| const string & | tname, | |||
| Xapian::PositionIterator | pos, | |||
| const Xapian::PositionIterator & | pos_end | |||
| ) |
Set the position list for the given docid and termname.
Definition at line 137 of file quartz_positionlist.cc.
References DEBUGCALL, make_key(), pack_uint(), and size.
Referenced by QuartzWritableDatabase::add_document_(), and QuartzWritableDatabase::replace_document().
| void QuartzPositionListTable::delete_positionlist | ( | Xapian::docid | did, | |
| const string & | tname | |||
| ) |
Delete the position list for the given docid and termname.
Definition at line 160 of file quartz_positionlist.cc.
References DEBUGCALL, Btree::del(), and make_key().
Referenced by QuartzWritableDatabase::delete_document(), and QuartzWritableDatabase::replace_document().