#include <brass_record.h>


Public Member Functions | |
| BrassRecordTable (const string &path_, bool readonly_) | |
| Create a new table object. | |
| string | get_record (Xapian::docid did) const |
| Retrieve a document from the table. | |
| Xapian::doccount | get_doccount () const |
| Get the number of records in the table. | |
| void | replace_record (const string &data, Xapian::docid did) |
| void | delete_record (Xapian::docid did) |
| Delete a record from the table. | |
Definition at line 36 of file brass_record.h.
| BrassRecordTable::BrassRecordTable | ( | const 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. |
Definition at line 50 of file brass_record.h.
| void BrassRecordTable::delete_record | ( | Xapian::docid | did | ) |
Delete a record from the table.
Definition at line 76 of file brass_record.cc.
References BrassTable::del(), LOGCALL_VOID, make_key(), and Xapian::Internal::str().
Referenced by BrassWritableDatabase::delete_document().
| Xapian::doccount BrassRecordTable::get_doccount | ( | ) | const |
Get the number of records in the table.
Definition at line 56 of file brass_record.cc.
References BrassTable::get_entry_count(), LOGCALL, rare, and RETURN.
Referenced by BrassDatabase::get_avlength(), and BrassDatabase::get_doccount().
| string BrassRecordTable::get_record | ( | Xapian::docid | did | ) | const |
Retrieve a document from the table.
Definition at line 43 of file brass_record.cc.
References BrassTable::get_exact_entry(), LOGCALL, make_key(), RETURN, and Xapian::Internal::str().
Referenced by BrassDocument::do_get_data().
| void BrassRecordTable::replace_record | ( | const string & | data, | |
| Xapian::docid | did | |||
| ) |
Definition at line 69 of file brass_record.cc.
References BrassTable::add(), LOGCALL_VOID, and make_key().
Referenced by BrassWritableDatabase::add_document_(), and BrassWritableDatabase::replace_document().