xapian-core
1.4.26
tests
harness
backendmanager_chert.h
Go to the documentation of this file.
1
4
/* Copyright (C) 2007,2008,2009,2018 Olly Betts
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H
22
#define XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H
23
24
#include "
backendmanager.h
"
25
26
#include <string>
27
28
#include <
xapian/types.h
>
29
#include <
xapian/postingiterator.h
>
30
32
class
BackendManagerChert
:
public
BackendManager
{
34
void
operator=
(
const
BackendManagerChert
&);
35
37
BackendManagerChert
(
const
BackendManagerChert
&);
38
40
std::string
last_wdb_name
;
41
43
std::string
do_get_database_path
(
const
std::vector<std::string> & files);
44
45
public
:
46
BackendManagerChert
(
const
std::string&
datadir
);
47
49
Xapian::WritableDatabase
get_writable_database
(
const
std::string &
name
,
50
const
std::string & file);
51
53
std::string
get_writable_database_path
(
const
std::string &
name
);
54
55
std::string
get_compaction_output_path
(
const
std::string&
name
);
56
58
std::string
get_generated_database_path
(
const
std::string &
name
);
59
61
Xapian::WritableDatabase
get_writable_database_again
();
62
64
std::string
get_writable_database_path_again
();
65
};
66
67
#endif // XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H
BackendManagerChert::operator=
void operator=(const BackendManagerChert &)
Don't allow assignment.
BackendManager::datadir
std::string datadir
The current data directory.
Definition:
backendmanager.h:44
BackendManager
Definition:
backendmanager.h:42
types.h
typedefs for Xapian
BackendManagerChert::BackendManagerChert
BackendManagerChert(const BackendManagerChert &)
Don't allow copying.
BackendManagerChert::do_get_database_path
std::string do_get_database_path(const std::vector< std::string > &files)
Get the path of Chert Xapian::Database instance.
Definition:
backendmanager_chert.cc:43
BackendManagerChert::get_generated_database_path
std::string get_generated_database_path(const std::string &name)
Get the path to use for generating a database, if supported.
Definition:
backendmanager_chert.cc:100
BackendManagerChert::get_writable_database_path
std::string get_writable_database_path(const std::string &name)
Get the path of Chert Xapian::WritableDatabase instance.
Definition:
backendmanager_chert.cc:88
BackendManagerChert::last_wdb_name
std::string last_wdb_name
The path of the last writable database used.
Definition:
backendmanager_chert.h:40
backendmanager.h
Base class for backend handling in test harness.
Xapian::WritableDatabase
This class provides read/write access to a database.
Definition:
database.h:789
BackendManagerChert::get_writable_database
Xapian::WritableDatabase get_writable_database(const std::string &name, const std::string &file)
Create a Chert Xapian::WritableDatabase object indexing a single file.
Definition:
backendmanager_chert.cc:70
BackendManagerChert
BackendManager subclass for chert databases.
Definition:
backendmanager_chert.h:32
BackendManagerChert::get_writable_database_again
Xapian::WritableDatabase get_writable_database_again()
Create a WritableDatabase object for the last opened WritableDatabase.
Definition:
backendmanager_chert.cc:106
name
Definition:
header.h:151
postingiterator.h
Class for iterating over a list of document ids.
BackendManagerChert::get_writable_database_path_again
std::string get_writable_database_path_again()
Get the path of the last opened WritableDatabase.
Definition:
backendmanager_chert.cc:113
BackendManagerChert::get_compaction_output_path
std::string get_compaction_output_path(const std::string &name)
Get a path to compact a database to.
Definition:
backendmanager_chert.cc:94
Generated by
Doxygen 1.8.13