xapian-core  1.4.25
Functions
Xapian::Chert Namespace Reference

Database factory functions for the chert backend. More...

Functions

Database open (const std::string &dir)
 Construct a Database object for read-only access to a Chert database. More...
 
WritableDatabase open (const std::string &dir, int action, int block_size=0)
 Construct a Database object for update access to a Chert database. More...
 

Detailed Description

Database factory functions for the chert backend.

Function Documentation

◆ open() [1/2]

Database Xapian::Chert::open ( const std::string &  dir)
inline

Construct a Database object for read-only access to a Chert database.

Parameters
dirpathname of the directory containing the database.

Definition at line 123 of file dbfactory.h.

References Xapian::DB_BACKEND_CHERT, Xapian::Remote::open(), and XAPIAN_DEPRECATED.

◆ open() [2/2]

WritableDatabase Xapian::Chert::open ( const std::string &  dir,
int  action,
int  block_size = 0 
)
inline

Construct a Database object for update access to a Chert database.

Parameters
dirpathname of the directory containing the database.
actiondetermines handling of existing/non-existing database:
block_sizethe Btree blocksize to use (in bytes), which must be a power of two between 2048 and 65536 (inclusive). The default (also used if an invalid value if passed) is 8192 bytes. This parameter is ignored when opening an existing database.

Definition at line 149 of file dbfactory.h.

References Xapian::DB_BACKEND_CHERT, Xapian::Remote::open(), Xapian::Remote::open_writable(), and XAPIAN_VISIBILITY_DEFAULT.