xapian-core  1.4.25
chert_dbcheck.h
Go to the documentation of this file.
1 
4 /* Copyright (C) 2008,2009,2012,2013,2014,2016 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
19  * USA
20  */
21 
22 #ifndef XAPIAN_INCLUDED_CHERT_DBCHECK_H
23 #define XAPIAN_INCLUDED_CHERT_DBCHECK_H
24 
25 #include "xapian/types.h"
26 
27 #include "chert_types.h"
28 
29 #include <cstring> // For size_t.
30 #include <iosfwd>
31 #include <string>
32 #include <vector>
33 
34 size_t check_chert_table(const char * tablename, const std::string& dir,
35  chert_revision_number_t * rev_ptr, int opts,
36  std::vector<Xapian::termcount> & doclens,
38  Xapian::docid db_last_docid, std::ostream * out);
39 
40 #endif // XAPIAN_INCLUDED_CHERT_DBCHECK_H
typedefs for Xapian
static const char * opts
Types used by chert backend and the Btree manager.
unsigned int chert_revision_number_t
A type used to store a revision number for a table.
Definition: chert_types.h:40
size_t check_chert_table(const char *tablename, const std::string &dir, chert_revision_number_t *rev_ptr, int opts, std::vector< Xapian::termcount > &doclens, Xapian::doccount doccount, Xapian::docid db_last_docid, std::ostream *out)
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Definition: types.h:38
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Definition: types.h:52