MySQL 9.1.0
Source Code Documentation
myisam_ftdump.cc File Reference
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include "m_string.h"
#include "my_compiler.h"
#include "my_getopt.h"
#include "my_inttypes.h"
#include "mysql/strings/m_ctype.h"
#include "print_version.h"
#include "storage/myisam/ftdefs.h"
#include "storage/myisam/myisamdef.h"
#include "welcome_copyright_notice.h"
#include "storage/myisam/mi_extrafunc.h"

Macros

#define MAX_LEN   (HA_FT_MAXBYTELEN + 10)
 
#define HOW_OFTEN_TO_WRITE   10000
 

Functions

static void usage ()
 
static void complain (int val)
 
static bool get_one_option (int, const struct my_option *, char *)
 
st_keycache_thread_varkeycache_thread_var ()
 
int main (int argc, char *argv[])
 

Variables

static int count = 0
 
static int stats = 0
 
static int dump = 0
 
static int lstats = 0
 
static bool verbose
 
static char * query = nullptr
 
static uint lengths [256]
 
static struct my_option my_long_options []
 

Macro Definition Documentation

◆ HOW_OFTEN_TO_WRITE

#define HOW_OFTEN_TO_WRITE   10000

◆ MAX_LEN

#define MAX_LEN   (HA_FT_MAXBYTELEN + 10)

Function Documentation

◆ complain()

static void complain ( int  val)
static

◆ get_one_option()

static bool get_one_option ( int  optid,
const struct my_option opt,
char *  argument 
)
static

◆ keycache_thread_var()

st_keycache_thread_var * keycache_thread_var ( )

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ count

int count = 0
static

◆ dump

int dump = 0
static

◆ lengths

uint lengths[256]
static

◆ lstats

int lstats = 0
static

◆ my_long_options

struct my_option my_long_options[]
static
Initial value:
= {
{"help", 'h', "Display help and exit.", nullptr, nullptr, nullptr,
GET_NO_ARG, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{"help", '?', "Synonym for -h.", nullptr, nullptr, nullptr, GET_NO_ARG,
NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{"count", 'c', "Calculate per-word stats (counts and global weights).",
nullptr, nullptr, nullptr, GET_NO_ARG, NO_ARG, 0, 0, 0, nullptr, 0,
nullptr},
{"dump", 'd', "Dump index (incl. data offsets and word weights).", nullptr,
nullptr, nullptr, GET_NO_ARG, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{"length", 'l', "Report length distribution.", nullptr, nullptr, nullptr,
GET_NO_ARG, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{"stats", 's', "Report global stats.", nullptr, nullptr, nullptr,
GET_NO_ARG, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{"verbose", 'v', "Be verbose.", &verbose, &verbose, nullptr, GET_BOOL,
NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
{nullptr, 0, nullptr, nullptr, nullptr, nullptr, GET_NO_ARG, NO_ARG, 0, 0,
0, nullptr, 0, nullptr}}
#define GET_NO_ARG
Definition: my_getopt.h:44
@ NO_ARG
Definition: my_getopt.h:81
#define GET_BOOL
Definition: my_getopt.h:45
static bool verbose
Definition: myisam_ftdump.cc:46

◆ query

char* query = nullptr
static

◆ stats

int stats = 0
static

◆ verbose

bool verbose
static