|
xapian-core
1.4.29
|
Allow inspection of the contents of a Xapian database. More...
#include <config.h>#include <xapian.h>#include <algorithm>#include <ios>#include <iostream>#include <vector>#include "gnu_getopt.h"#include <cerrno>#include <cstring>#include <cstdlib>#include "unicode/description_append.h"#include "unicode/description_append.cc"
Include dependency graph for xapian-delve.cc:Go to the source code of this file.
Macros | |
| #define | PROG_NAME "delve" |
| #define | PROG_DESC "Inspect the contents of a Xapian database" |
Enumerations | |
| enum | { VALUE_ESCAPE, VALUE_SORTABLE_SERIALISE, VALUE_PACKED_INT, VALUE_RAW } |
Functions | |
| static void | show_usage () |
| static void | show_db_stats (Database &db) |
| static void | decode_and_show_value (const string &value) |
| static void | show_values (Database &db, docid docid, char sep) |
| static void | show_values (Database &db, vector< docid >::const_iterator i, vector< docid >::const_iterator end) |
| static void | show_value (Database &db, vector< docid >::const_iterator i, vector< docid >::const_iterator end, Xapian::valueno slot) |
| static void | show_docdata (Database &db, docid docid, char sep) |
| static void | show_docdata (Database &db, vector< docid >::const_iterator i, vector< docid >::const_iterator end) |
| static void | show_termlist (const Database &db, Xapian::docid did, const char *all_pfx=NULL) |
| static void | show_termlists (Database &db, vector< docid >::const_iterator i, vector< docid >::const_iterator end) |
| int | main (int argc, char **argv) |
Variables | |
| static char | separator = ' ' |
| static int | verbose = 0 |
| static bool | showvalues = false |
| static bool | showdocdata = false |
| static bool | count_zero_length_docs = false |
| static enum { ... } | value_decode = VALUE_ESCAPE |
Allow inspection of the contents of a Xapian database.
Definition in file xapian-delve.cc.
| #define PROG_DESC "Inspect the contents of a Xapian database" |
Definition at line 61 of file xapian-delve.cc.
Referenced by main().
| #define PROG_NAME "delve" |
Definition at line 60 of file xapian-delve.cc.
Referenced by main(), and show_usage().
| anonymous enum |
| Enumerator | |
|---|---|
| VALUE_ESCAPE | |
| VALUE_SORTABLE_SERIALISE | |
| VALUE_PACKED_INT | |
| VALUE_RAW | |
Definition at line 53 of file xapian-delve.cc.
|
static |
Definition at line 159 of file xapian-delve.cc.
References description_append(), Xapian::sortable_unserialise(), value_decode, VALUE_ESCAPE, VALUE_PACKED_INT, and VALUE_SORTABLE_SERIALISE.
Referenced by main(), show_value(), and show_values().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 300 of file xapian-delve.cc.
References Xapian::Database::add_database(), count_zero_length_docs, decode_and_show_value(), Xapian::Error::get_description(), Xapian::ValueIterator::get_docid(), Xapian::PostingIterator::get_wdf(), gnu_getopt(), optarg, optind, PACKAGE_STRING, Xapian::PostingIterator::positionlist_begin(), Xapian::PostingIterator::positionlist_end(), PROG_DESC, PROG_NAME, separator, show_db_stats(), show_docdata(), show_termlist(), show_termlists(), show_usage(), show_value(), show_values(), showdocdata, showvalues, Xapian::PostingIterator::skip_to(), stemmer, value_decode, VALUE_ESCAPE, VALUE_PACKED_INT, VALUE_RAW, VALUE_SORTABLE_SERIALISE, and verbose.
|
static |
Definition at line 96 of file xapian-delve.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), count_zero_length_docs, Xapian::Database::get_avlength(), Xapian::Error::get_description(), Xapian::Database::get_doccount(), Xapian::PostingIterator::get_doclength(), Xapian::Database::get_doclength_lower_bound(), Xapian::Database::get_doclength_upper_bound(), Xapian::Database::get_lastdocid(), Xapian::Error::get_msg(), Xapian::Database::get_revision(), Xapian::Database::get_total_length(), Xapian::Database::get_uuid(), Xapian::Database::has_positions(), Xapian::Database::locked(), Xapian::Database::postlist_begin(), Xapian::Database::postlist_end(), Xapian::Database::size(), and verbose.
Referenced by main().
Definition at line 226 of file xapian-delve.cc.
References Xapian::Document::get_data(), and Xapian::Database::get_document().
Referenced by main().
|
static |
Definition at line 232 of file xapian-delve.cc.
References Xapian::Document::get_data(), and Xapian::Database::get_document().
|
static |
Definition at line 244 of file xapian-delve.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), Xapian::Database::get_collection_freq(), Xapian::TermIterator::get_termfreq(), Xapian::TermIterator::get_wdf(), Xapian::Database::get_wdf_upper_bound(), separator, Xapian::Database::termlist_begin(), Xapian::Database::termlist_end(), and verbose.
Referenced by main(), and show_termlists().
|
static |
|
static |
Definition at line 211 of file xapian-delve.cc.
References decode_and_show_value(), Xapian::Database::get_document(), and Xapian::Document::get_value().
Referenced by main().
Definition at line 186 of file xapian-delve.cc.
References decode_and_show_value(), Xapian::Database::get_document(), Xapian::ValueIterator::get_valueno(), Xapian::Document::values_begin(), and Xapian::Document::values_end().
Referenced by main(), and show_values().
|
static |
Definition at line 198 of file xapian-delve.cc.
References separator, and show_values().
|
static |
Definition at line 50 of file xapian-delve.cc.
Referenced by main(), and show_db_stats().
|
static |
Definition at line 45 of file xapian-delve.cc.
Referenced by main(), show_termlist(), and show_values().
|
static |
Definition at line 49 of file xapian-delve.cc.
Referenced by main().
|
static |
Definition at line 48 of file xapian-delve.cc.
Referenced by main().
| enum { ... } value_decode |
Referenced by decode_and_show_value(), and main().
|
static |
Definition at line 47 of file xapian-delve.cc.
Referenced by DEFINE_TESTCASE(), RemoteTcpServer::handle_one_connection(), main(), show_db_stats(), and show_termlist().