#include <config.h>
#include <iostream>
#include "autoptr.h"
#include "flint_check.h"
#include "flint_cursor.h"
#include "flint_table.h"
#include "flint_types.h"
#include "flint_utils.h"
#include "stringutils.h"
#include "utils.h"
#include <xapian.h>
Include dependency graph for xapian-check.cc:
Go to the source code of this file.
Classes | |
class | BitReader |
Defines | |
#define | PROG_NAME "xapian-check" |
#define | PROG_DESC "Check the consistency of a flint database or table" |
Functions | |
static void | show_usage () |
static size_t | check_table (string table, int opts) |
int | my_fls (unsigned mask) |
static bool | is_user_metadata_key (const string &key) |
int | main (int argc, char **argv) |
Variables | |
static vector< Xapian::termcount > | doclens |
static const unsigned char | flstab [256] |
#define PROG_NAME "xapian-check" |
Definition at line 39 of file xapian-check.cc.
#define PROG_DESC "Check the consistency of a flint database or table" |
Definition at line 40 of file xapian-check.cc.
static void show_usage | ( | ) | [static] |
static size_t check_table | ( | string | table, | |
int | opts | |||
) | [static] |
Definition at line 283 of file xapian-check.cc.
References BtreeCheck::check(), FlintTable::cursor_get(), BitReader::decode(), BitReader::decode_interpolative(), doclens, if(), is_user_metadata_key(), FlintTable::open(), BitReader::read_bits(), Xapian::Unicode::tolower(), unpack_bool(), unpack_string(), unpack_string_preserving_sort(), unpack_uint(), unpack_uint_last(), and unpack_uint_preserving_sort().
int my_fls | ( | unsigned | mask | ) | [inline] |
static bool is_user_metadata_key | ( | const string & | key | ) | [inline, static] |
Definition at line 168 of file xapian-check.cc.
Referenced by check_table(), merge_postlists(), and PostlistCursor::next().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 174 of file xapian-check.cc.
References check_table(), doclens, endswith(), error(), file_exists(), Xapian::Error::get_description(), Xapian::Database::get_lastdocid(), Xapian::Flint::open(), OPT_FULL_TREE, OPT_SHORT_TREE, OPT_SHOW_BITMAP, OPT_SHOW_STATS, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, show_usage(), and stat().
vector<Xapian::termcount> doclens [static] |
Definition at line 60 of file xapian-check.cc.
const unsigned char flstab[256] [static] |
Initial value:
{ 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 }
Definition at line 62 of file xapian-check.cc.