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

Public Member Functions

 ~row_import () UNIV_NOTHROW
row_index_tget_index (const char *name) const UNIV_NOTHROW
ulint get_n_rows (const char *name) const UNIV_NOTHROW
ulint find_col (const char *name) const UNIV_NOTHROW

- of the index to look for

Find the index field entry in in the cfg indexes fields.

Returns
instance if found else 0.
dict_table_tm_table
ulint m_version
byte * m_hostname
byte * m_table_name
ib_uint64_t m_autoinc
ulint m_page_size
ulint m_flags
ulint m_n_cols
dict_col_tm_cols
byte ** m_col_names
ulint m_n_indexes
row_index_tm_indexes
bool m_missing
const dict_field_tfind_field (const row_index_t *cfg_index, const char *name) const UNIV_NOTHROW
ulint get_n_purge_failed (const char *name) const UNIV_NOTHROW
bool requires_purge (const char *name) const UNIV_NOTHROW
void set_root_by_name () UNIV_NOTHROW
dberr_t set_root_by_heuristic () UNIV_NOTHROW
dberr_t match_index_columns (THD *thd, const dict_index_t *index) UNIV_NOTHROW
dberr_t match_table_columns (THD *thd) UNIV_NOTHROW
dberr_t match_schema (THD *thd) UNIV_NOTHROW

Detailed Description

Meta data required by IMPORT.

Definition at line 104 of file row0import.cc.

Constructor & Destructor Documentation

row_import::~row_import ( )

row_import destructor.

Definition at line 1039 of file row0import.cc.

Member Function Documentation

ulint row_import::find_col ( const char *  name) const

Find the ordinal value of the column name in the cfg table columns.

Parameters
name- of column to look for.
Returns
ULINT_UNDEFINED if not found.

Definition at line 1127 of file row0import.cc.

Here is the caller graph for this function:

row_index_t * row_import::get_index ( const char *  name) const

Find the index entry in in the indexes array.

Parameters
name- index name
Returns
instance if found else 0.

Definition at line 1074 of file row0import.cc.

Here is the caller graph for this function:

ulint row_import::get_n_purge_failed ( const char *  name) const

Get the number of rows for which purge failed during the convert phase.

Parameters
name- index name
Returns
number of rows for which purge failed.

Get the number of rows for which purge failed uding the convert phase.

Parameters
name- index name
Returns
number of rows for which purge failed.

Definition at line 1112 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

ulint row_import::get_n_rows ( const char *  name) const

Get the number of rows in the index.

Parameters
name- index name
Returns
number of rows (doesn't include delete marked rows).

Definition at line 1097 of file row0import.cc.

Here is the call graph for this function:

dberr_t row_import::match_index_columns ( THD *  thd,
const dict_index_t index 
)
Check if the index schema that was read from the .cfg file

matches the in memory index definition. Note: It will update row_import_t::m_srv_index to map the meta-data read from the .cfg file to the server index instance.

Returns
DB_SUCCESS or error code.

Check if the index schema that was read from the .cfg file matches the in memory index definition.

Returns
DB_SUCCESS or error code.

Definition at line 1172 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

dberr_t row_import::match_schema ( THD *  thd)

Check if the table (and index) schema that was read from the .cfg file matches the in memory table definition.

Parameters
thd- MySQL session variable
Returns
DB_SUCCESS or error code.

Definition at line 1357 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

dberr_t row_import::match_table_columns ( THD *  thd)

Check if the table schema that was read from the .cfg file matches the in memory table definition.

Parameters
thd- MySQL session variable
Returns
DB_SUCCESS or error code.

Definition at line 1247 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

bool row_import::requires_purge ( const char *  name) const
inline

Check if the index is clean. ie. no delete-marked records

Parameters
name- index name
Returns
true if index needs to be purged.

Definition at line 159 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

dberr_t row_import::set_root_by_heuristic ( )

Set the index root <space, pageno> using a heuristic

Returns
DB_SUCCESS or error code

Set the index root <space, pageno>, using a heuristic.

Returns
DB_SUCCESS or error code

Definition at line 1448 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void row_import::set_root_by_name ( )

Set the index root <space, pageno> using the index name

Set the index root <space, pageno>, using index name.

Definition at line 1422 of file row0import.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

ib_uint64_t row_import::m_autoinc

Next autoinc value

Definition at line 207 of file row0import.cc.

byte** row_import::m_col_names

Column names, we store the column naems separately becuase there is no field to store the value in dict_col_t

Definition at line 218 of file row0import.cc.

dict_col_t* row_import::m_cols

Column data

Definition at line 216 of file row0import.cc.

ulint row_import::m_flags

Table flags

Definition at line 211 of file row0import.cc.

byte* row_import::m_hostname

Hostname where the tablespace was exported

Definition at line 202 of file row0import.cc.

row_index_t* row_import::m_indexes

Index meta data

Definition at line 226 of file row0import.cc.

bool row_import::m_missing

true if a .cfg file was found and was readable

Definition at line 228 of file row0import.cc.

ulint row_import::m_n_cols

Number of columns in the meta-data file

Definition at line 213 of file row0import.cc.

ulint row_import::m_n_indexes

Number of indexes, including clustered index

Definition at line 223 of file row0import.cc.

ulint row_import::m_page_size

Tablespace page size

Definition at line 209 of file row0import.cc.

dict_table_t* row_import::m_table

Table instance

Definition at line 198 of file row0import.cc.

byte* row_import::m_table_name

Exporting instance table name

Definition at line 204 of file row0import.cc.

ulint row_import::m_version

Version of config file

Definition at line 200 of file row0import.cc.


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