QuartzPositionListTable Class Reference

#include <quartz_positionlist.h>

Inheritance diagram for QuartzPositionListTable:

Inheritance graph
[legend]
Collaboration diagram for QuartzPositionListTable:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Definition at line 37 of file quartz_positionlist.h.


Constructor & Destructor Documentation

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.

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 53 of file quartz_positionlist.h.


Member Function Documentation

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


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.