MySQL  8.0.17
Source Code Documentation
myisam_ftdump.cc File Reference
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include "my_compiler.h"
#include "my_getopt.h"
#include "my_inttypes.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 = NULL
 
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.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0,
0, 0, 0, 0},
{"help", '?', "Synonym for -h.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0,
0},
{"count", 'c', "Calculate per-word stats (counts and global weights).", 0,
0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"dump", 'd', "Dump index (incl. data offsets and word weights).", 0, 0, 0,
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"length", 'l', "Report length distribution.", 0, 0, 0, GET_NO_ARG, NO_ARG,
0, 0, 0, 0, 0, 0},
{"stats", 's', "Report global stats.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0,
0, 0, 0},
{"verbose", 'v', "Be verbose.", &verbose, &verbose, 0, GET_BOOL, NO_ARG, 0,
0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}}
static bool verbose
Definition: myisam_ftdump.cc:43
#define GET_NO_ARG
Definition: my_getopt.h:41
Definition: my_getopt.h:78
#define GET_BOOL
Definition: my_getopt.h:42

◆ query

char* query = NULL
static

◆ stats

int stats = 0
static

◆ verbose

bool verbose
static