xapian-core
1.4.26
|
BackendManager subclass for inmemory databases. More...
#include <backendmanager_inmemory.h>
Public Member Functions | |
BackendManagerInMemory (const std::string &datadir_) | |
Xapian::WritableDatabase | get_writable_database (const std::string &name, const std::string &file) |
Create a InMemory Xapian::WritableDatabase object indexing a single file. More... | |
std::string | get_generated_database_path (const std::string &name) |
Get the path to use for generating a database, if supported. More... | |
Public Member Functions inherited from BackendManager | |
BackendManager (const std::string &datadir_, const std::string &dbtype_) | |
Constructor. More... | |
virtual | ~BackendManager () |
We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More... | |
const std::string & | get_dbtype () const |
Get the database type currently in use. More... | |
const std::string & | get_datadir () const |
Get the directory to store data in. More... | |
Xapian::Database | get_database (const std::vector< std::string > &files) |
Get a database instance of the current type. More... | |
Xapian::Database | get_database (const std::string &file) |
Get a database instance of the current type, single file case. More... | |
Xapian::Database | get_database (const std::string &dbname, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg) |
Get a database instance of the current type, generated case. More... | |
virtual Xapian::Database | get_database_by_path (const std::string &path) |
Get a database instance by path. More... | |
std::string | get_database_path (const std::vector< std::string > &files) |
Get the path of a database instance, if such a thing exists. More... | |
std::string | get_database_path (const std::string &file) |
Get the path of a database instance, if such a thing exists (single file case). More... | |
std::string | get_database_path (const std::string &dbname, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg) |
Get the path of a generated database instance. More... | |
virtual Xapian::WritableDatabase | get_remote_writable_database (std::string args) |
Get a remote Xapian::WritableDatabase instance with specified args. More... | |
virtual std::string | get_writable_database_path (const std::string &name) |
Get the path of a writable database instance, if such a thing exists. More... | |
virtual Xapian::WritableDatabase | get_generated_database (const std::string &name) |
Get a generated writable database instance. More... | |
virtual void | finalise_generated_database (const std::string &name) |
Finalise the generated database. More... | |
virtual Xapian::Database | get_remote_database (const std::vector< std::string > &files, unsigned int timeout) |
Get a remote database instance with the specified timeout. More... | |
virtual std::string | get_writable_database_args (const std::string &path, unsigned int timeout) |
Get the args for opening a writable remote database with the specified timeout. More... | |
virtual Xapian::Database | get_writable_database_as_database () |
Create a Database object for the last opened WritableDatabase. More... | |
virtual Xapian::WritableDatabase | get_writable_database_again () |
Create a WritableDatabase object for the last opened WritableDatabase. More... | |
virtual std::string | get_writable_database_path_again () |
Get the path of the last opened WritableDatabase. More... | |
virtual std::string | get_compaction_output_path (const std::string &name) |
Get a path to compact a database to. More... | |
virtual void | clean_up () |
Called after each test, to perform any necessary cleanup. More... | |
Protected Member Functions | |
Xapian::Database | do_get_database (const std::vector< std::string > &files) |
Create a InMemory Xapian::Database object indexing multiple files. More... | |
Protected Member Functions inherited from BackendManager | |
void | index_files_to_database (Xapian::WritableDatabase &database, const std::vector< std::string > &files) |
Index data from zero or more text files into a database. More... | |
bool | create_dir_if_needed (const std::string &dirname) |
Create the directory dirname if needed. More... | |
virtual std::string | do_get_database_path (const std::vector< std::string > &files) |
Virtual method implementing get_database_path(). More... | |
Private Member Functions | |
void | operator= (const BackendManagerInMemory &) |
Don't allow assignment. More... | |
BackendManagerInMemory (const BackendManagerInMemory &) | |
Don't allow copying. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from BackendManager | |
static const char * | get_xapian_progsrv_command () |
Get the command line required to run xapian-progsrv. More... | |
BackendManager subclass for inmemory databases.
Definition at line 32 of file backendmanager_inmemory.h.
|
private |
Don't allow copying.
|
inlineexplicit |
Definition at line 45 of file backendmanager_inmemory.h.
References get_generated_database_path(), and get_writable_database().
|
protectedvirtual |
Create a InMemory Xapian::Database object indexing multiple files.
Reimplemented from BackendManager.
Definition at line 28 of file backendmanager_inmemory.cc.
References Xapian::DB_BACKEND_INMEMORY.
|
virtual |
Get the path to use for generating a database, if supported.
Reimplemented from BackendManager.
Definition at line 49 of file backendmanager_inmemory.cc.
Referenced by BackendManagerInMemory().
|
virtual |
Create a InMemory Xapian::WritableDatabase object indexing a single file.
Reimplemented from BackendManager.
Definition at line 40 of file backendmanager_inmemory.cc.
References Xapian::DB_BACKEND_INMEMORY.
Referenced by BackendManagerInMemory().
|
private |
Don't allow assignment.