tests/dbcheck.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2010 Richard Boulton
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 #ifndef XAPIAN_INCLUDED_DBCHECK_H
00022 #define XAPIAN_INCLUDED_DBCHECK_H
00023 
00024 #include <xapian.h>
00025 #include <string>
00026 
00034 std::string
00035 positions_to_string(Xapian::PositionIterator & it,
00036                     const Xapian::PositionIterator & end,
00037                     Xapian::termcount * count = NULL);
00038 
00043 std::string
00044 postlist_to_string(const Xapian::Database & db, const std::string & tname);
00045 
00050 std::string
00051 docterms_to_string(const Xapian::Database & db, Xapian::docid did);
00052 
00054 std::string
00055 docstats_to_string(const Xapian::Database & db, Xapian::docid did);
00056 
00058 std::string
00059 termstats_to_string(const Xapian::Database & db, const std::string & term);
00060 
00062 std::string
00063 dbstats_to_string(const Xapian::Database & db);
00064 
00069 void
00070 dbcheck(const Xapian::Database & db,
00071         Xapian::doccount expected_doccount,
00072         Xapian::docid expected_lastdocid);
00073 
00074 #endif /* XAPIAN_INCLUDED_DBCHECK_H */

Documentation for Xapian (version 1.0.20).
Generated on 28 Apr 2010 by Doxygen 1.5.2.