QuartzTermListTable Class Reference

#include <quartz_termlist.h>

Inheritance diagram for QuartzTermListTable:

Inheritance graph
[legend]
Collaboration diagram for QuartzTermListTable:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Definition at line 35 of file quartz_termlist.h.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

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.

Parameters:
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().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.