xapian-core
1.4.27
|
Compact a database, or merge and compact several. More...
#include <config.h>
#include <xapian.h>
#include <cstdlib>
#include <iostream>
#include "gnu_getopt.h"
Go to the source code of this file.
Classes | |
class | MyCompactor |
Macros | |
#define | PROG_NAME "xapian-compact" |
#define | PROG_DESC "Compact a database, or merge and compact several" |
#define | OPT_HELP 1 |
#define | OPT_VERSION 2 |
#define | OPT_NO_RENUMBER 3 |
Functions | |
static void | show_usage () |
int | main (int argc, char **argv) |
Compact a database, or merge and compact several.
Definition in file xapian-compact.cc.
#define OPT_HELP 1 |
Definition at line 37 of file xapian-compact.cc.
Referenced by main().
#define OPT_NO_RENUMBER 3 |
Definition at line 39 of file xapian-compact.cc.
Referenced by main().
#define OPT_VERSION 2 |
Definition at line 38 of file xapian-compact.cc.
Referenced by main().
#define PROG_DESC "Compact a database, or merge and compact several" |
Definition at line 35 of file xapian-compact.cc.
Referenced by main().
#define PROG_NAME "xapian-compact" |
Definition at line 34 of file xapian-compact.cc.
Referenced by main(), and show_usage().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 107 of file xapian-compact.cc.
References Xapian::Database::add_database(), Xapian::Database::compact(), Xapian::DBCOMPACT_MULTIPASS, Xapian::DBCOMPACT_NO_RENUMBER, Xapian::DBCOMPACT_SINGLE_FILE, Xapian::Compactor::FULL, Xapian::Compactor::FULLER, Xapian::Error::get_description(), gnu_getopt_long(), no_argument, OPT_HELP, OPT_NO_RENUMBER, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, required_argument, MyCompactor::set_quiet(), show_usage(), and Xapian::Compactor::STANDARD.
|
static |