bin/quartzcompact.cc File Reference

#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 Documentation

#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.


Function Documentation

static void show_usage (  )  [static]

Definition at line 51 of file quartzcompact.cc.

References PROG_NAME.

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().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.