#include <quartz_termlist.h>
Inheritance diagram for QuartzTermListTable:


Public Member Functions | |
| QuartzTermListTable (string path_, bool readonly_) | |
| Create a new table object. | |
| void | set_entries (Xapian::docid did, Xapian::TermIterator t, const Xapian::TermIterator &t_end, quartz_doclen_t doclen, bool store_termfreqs) |
| Set the entries in the termlist. | |
| void | delete_termlist (Xapian::docid did) |
| Clear the termlist. | |
Definition at line 35 of file quartz_termlist.h.
| QuartzTermListTable::QuartzTermListTable | ( | 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 51 of file quartz_termlist.h.
| void QuartzTermListTable::set_entries | ( | Xapian::docid | did, | |
| Xapian::TermIterator | t, | |||
| const Xapian::TermIterator & | t_end, | |||
| quartz_doclen_t | doclen, | |||
| bool | store_termfreqs | |||
| ) |
Set the entries in the termlist.
If the termlist already exists, its contents are replaced.
| store_termfreqs | If true, term frequencies are stored in the termlist. This should only be done with static databases (which are probably generated from dumps of dynamic databases) - updating cannot be done efficiently while storing term frequencies. |
Definition at line 35 of file quartz_termlist.cc.
References DEBUGCALL, DEBUGLINE, Xapian::TermIterator::get_termfreq(), Xapian::TermIterator::get_wdf(), pack_bool(), pack_uint(), quartz_docid_to_key(), and size.
Referenced by QuartzWritableDatabase::add_document_(), and QuartzWritableDatabase::replace_document().
| void QuartzTermListTable::delete_termlist | ( | Xapian::docid | did | ) |
Clear the termlist.
After this call, the termlist for the specified document ID will not exist.
Definition at line 87 of file quartz_termlist.cc.
References DEBUGCALL_STATIC, Btree::del(), and quartz_docid_to_key().
Referenced by QuartzWritableDatabase::delete_document().