MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
st_key Struct Reference
Collaboration diagram for st_key:

Public Attributes

uint key_length
ulong flags
ulong actual_flags
uint user_defined_key_parts
uint actual_key_parts
uint unused_key_parts
uint usable_key_parts
uint block_size
enum ha_key_alg algorithm
union {
   plugin_ref   parser
   LEX_STRING *   parser_name
}; 
KEY_PART_INFOkey_part
char * name
ulong * rec_per_key
union {
   int   bdb_return_if_eq
handler
TABLEtable
LEX_STRING comment

Detailed Description

Definition at line 88 of file structs.h.

Member Data Documentation

union { ... }

Note that parser is used when the table is opened for use, and parser_name is used when the table is being created.

ulong st_key::actual_flags

dupp key and pack flags for actual key parts

Definition at line 94 of file structs.h.

uint st_key::actual_key_parts

How many key_parts including hidden parts

Definition at line 98 of file structs.h.

ulong st_key::flags

dupp key and pack flags

Definition at line 92 of file structs.h.

uint st_key::key_length

Tot length of key

Definition at line 90 of file structs.h.

char* st_key::name

Name of key

Definition at line 121 of file structs.h.

plugin_ref st_key::parser

Fulltext [pre]parser

Definition at line 115 of file structs.h.

LEX_STRING* st_key::parser_name

Fulltext [pre]parser name

Definition at line 117 of file structs.h.

ulong* st_key::rec_per_key

Array of AVG(#records with the same field value) for 1st ... Nth key part. 0 means 'not known'. For temporary heap tables this member is NULL.

Definition at line 127 of file structs.h.

uint st_key::unused_key_parts

Key parts allocated for primary key parts extension but not used due to some reasons(no primary key, duplicated key parts)

Definition at line 103 of file structs.h.

uint st_key::usable_key_parts

Should normally be = key_parts

Definition at line 105 of file structs.h.

uint st_key::user_defined_key_parts

How many key_parts

Definition at line 96 of file structs.h.


The documentation for this struct was generated from the following file: