|
xapian-core
1.4.29
|
Check consistency of a glass table. More...
#include <config.h>#include "glass_dbcheck.h"#include "bitstream.h"#include "internaltypes.h"#include "glass_check.h"#include "glass_cursor.h"#include "glass_defs.h"#include "glass_table.h"#include "glass_version.h"#include "pack.h"#include "backends/valuestats.h"#include <xapian.h>#include "filetests.h"#include "autoptr.h"#include <ostream>#include <vector>
Include dependency graph for glass_dbcheck.cc:Go to the source code of this file.
Classes | |
| struct | VStats |
Functions | |
| static bool | is_user_metadata_key (const string &key) |
| size_t | check_glass_table (const char *tablename, const string &db_dir, int fd, off_t offset_, const GlassVersion &version_file, int opts, vector< Xapian::termcount > &doclens, ostream *out) |
Check consistency of a glass table.
Definition in file glass_dbcheck.cc.
| size_t check_glass_table | ( | const char * | tablename, |
| const string & | db_dir, | ||
| int | fd, | ||
| off_t | offset_, | ||
| const GlassVersion & | version_file, | ||
| int | opts, | ||
| vector< Xapian::termcount > & | doclens, | ||
| ostream * | out | ||
| ) |
Definition at line 61 of file glass_dbcheck.cc.
References AssertEq, GlassTableCheck::check(), Xapian::BitReader::decode(), file_exists(), ValueStats::freq, VStats::freq_real, GlassVersion::get_doccount(), GlassVersion::get_doclength_lower_bound(), GlassVersion::get_doclength_upper_bound(), GlassVersion::get_last_docid(), GLASS_TABLE_EXTENSION, is_user_metadata_key(), ValueStats::lower_bound, unpack_bool(), unpack_string(), unpack_string_preserving_sort(), unpack_uint(), unpack_uint_last(), unpack_uint_preserving_sort(), and ValueStats::upper_bound.
Referenced by check_db_dir(), check_db_fd(), check_db_table(), and check_glass_table().
|
inlinestatic |
Definition at line 49 of file glass_dbcheck.cc.
Referenced by check_glass_table().