#include <config.h>
#include "safeerrno.h"
#include <fstream>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "safesysstat.h"
#include "btree.h"
#include "bcursor.h"
#include "quartz_utils.h"
#include "utils.h"
#include <xapian.h>
#include "gnu_getopt.h"
Include dependency graph for quartzcompact.cc:
Go to the source code of this file.
Classes | |
class | PostlistCursor |
class | DocIDKeyedCursor |
class | PositionCursor |
struct | CursorGt |
Defines | |
#define | PROG_NAME "quartzcompact" |
#define | PROG_DESC "Compact a quartz database, or merge and compact several" |
Functions | |
static void | show_usage () |
static bool | is_metainfo_key (const string &key) |
int | main (int argc, char **argv) |
#define PROG_NAME "quartzcompact" |
Definition at line 48 of file quartzcompact.cc.
#define PROG_DESC "Compact a quartz database, or merge and compact several" |
Definition at line 49 of file quartzcompact.cc.
static void show_usage | ( | ) | [static] |
static bool is_metainfo_key | ( | const string & | key | ) | [inline, static] |
Definition at line 64 of file quartzcompact.cc.
Referenced by main(), merge_postlists(), PostlistCursor::next(), and DocIDKeyedCursor::next().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 209 of file quartzcompact.cc.
References Btree::add(), PostlistCursor::cf, Btree::commit(), Btree::create(), error(), PostlistCursor::firstdid, Btree::get_entry_count(), gnu_getopt_long(), is_metainfo_key(), PostlistCursor::key, long_opts, mkdir(), PostlistCursor::next(), no_argument, Btree::open(), optarg, optind, pack_uint(), pack_uint_last(), pack_uint_preserving_sort(), PACKAGE_STRING, PROG_DESC, PROG_NAME, required_argument, S_ISDIR, Btree::set_full_compaction(), Btree::set_max_item_size(), show_usage(), srcdir, stat(), PostlistCursor::tag, PostlistCursor::tf, unpack_uint(), and unpack_uint_last().