MySQL 8.0.39
Source Code Documentation
ha_innobase_inplace_ctx Struct Reference
Inheritance diagram for ha_innobase_inplace_ctx:
[legend]

Public Member Functions

 ha_innobase_inplace_ctx (row_prebuilt_t *prebuilt_arg, dict_index_t **drop_arg, ulint num_to_drop_arg, dict_index_t **rename_arg, ulint num_to_rename_arg, dict_foreign_t **drop_fk_arg, ulint num_to_drop_fk_arg, dict_foreign_t **add_fk_arg, ulint num_to_add_fk_arg, bool online_arg, mem_heap_t *heap_arg, dict_table_t *new_table_arg, const char **col_names_arg, ulint add_autoinc_arg, ulonglong autoinc_col_min_value_arg, ulonglong autoinc_col_max_value_arg)
 
 ~ha_innobase_inplace_ctx () override
 
bool need_rebuild () const
 Determine if the table will be rebuilt. More...
 
void set_shared_data (const inplace_alter_handler_ctx *ctx) override
 Set shared data between the passed in handler context and current context. More...
 
- Public Member Functions inherited from inplace_alter_handler_ctx
 inplace_alter_handler_ctx ()=default
 
virtual ~inplace_alter_handler_ctx ()=default
 

Public Attributes

que_thr_tthr
 Dummy query graph. More...
 
row_prebuilt_tprebuilt
 The prebuilt struct of the creating instance. More...
 
dict_index_t ** add_index
 InnoDB indexes being created. More...
 
const ulintadd_key_numbers
 MySQL key numbers for the InnoDB indexes that are being created. More...
 
ulint num_to_add_index
 number of InnoDB indexes being created More...
 
dict_index_t ** drop_index
 InnoDB indexes being dropped. More...
 
const ulint num_to_drop_index
 number of InnoDB indexes being dropped More...
 
dict_index_t ** rename
 InnoDB indexes being renamed. More...
 
const ulint num_to_rename
 number of InnoDB indexes being renamed More...
 
dict_foreign_t ** drop_fk
 InnoDB foreign key constraints being dropped. More...
 
const ulint num_to_drop_fk
 number of InnoDB foreign key constraints being dropped More...
 
dict_foreign_t ** add_fk
 InnoDB foreign key constraints being added. More...
 
const ulint num_to_add_fk
 number of InnoDB foreign key constraints being dropped More...
 
bool online
 whether to create the indexes online More...
 
mem_heap_theap
 memory heap More...
 
trx_ttrx
 dictionary transaction More...
 
dict_table_told_table
 original table (if rebuilt, differs from indexed_table) More...
 
dict_table_tnew_table
 table where the indexes are being created or dropped More...
 
const ulintcol_map
 mapping of old column numbers to new ones, or NULL More...
 
const char ** col_names
 new column names, or NULL if nothing was renamed More...
 
const ulint add_autoinc
 added AUTO_INCREMENT column position, or ULINT_UNDEFINED More...
 
const dtuple_tadd_cols
 default values of ADD COLUMN, or NULL More...
 
ddl::Sequence sequence
 autoinc sequence to use More...
 
ulonglong max_autoinc
 maximum auto-increment value More...
 
const char * tmp_name
 temporary table name to use for old table when renaming tables More...
 
bool skip_pk_sort
 whether the order of the clustered index is unchanged More...
 
dict_v_col_tadd_vcol
 virtual columns to be added More...
 
const char ** add_vcol_name
 
dict_v_col_tdrop_vcol
 virtual columns to be dropped More...
 
const char ** drop_vcol_name
 
Alter_stagem_stage
 ALTER TABLE stage progress recorder. More...
 
aux_name_vec_tfts_drop_aux_vec
 FTS AUX Tables to drop. More...
 

Private Member Functions

 ha_innobase_inplace_ctx (const ha_innobase_inplace_ctx &)
 
ha_innobase_inplace_ctxoperator= (const ha_innobase_inplace_ctx &)
 

Constructor & Destructor Documentation

◆ ha_innobase_inplace_ctx() [1/2]

ha_innobase_inplace_ctx::ha_innobase_inplace_ctx ( row_prebuilt_t prebuilt_arg,
dict_index_t **  drop_arg,
ulint  num_to_drop_arg,
dict_index_t **  rename_arg,
ulint  num_to_rename_arg,
dict_foreign_t **  drop_fk_arg,
ulint  num_to_drop_fk_arg,
dict_foreign_t **  add_fk_arg,
ulint  num_to_add_fk_arg,
bool  online_arg,
mem_heap_t heap_arg,
dict_table_t new_table_arg,
const char **  col_names_arg,
ulint  add_autoinc_arg,
ulonglong  autoinc_col_min_value_arg,
ulonglong  autoinc_col_max_value_arg 
)
inline

◆ ~ha_innobase_inplace_ctx()

ha_innobase_inplace_ctx::~ha_innobase_inplace_ctx ( )
inlineoverride

◆ ha_innobase_inplace_ctx() [2/2]

ha_innobase_inplace_ctx::ha_innobase_inplace_ctx ( const ha_innobase_inplace_ctx )
private

Member Function Documentation

◆ need_rebuild()

bool ha_innobase_inplace_ctx::need_rebuild ( ) const
inline

Determine if the table will be rebuilt.

Returns
whether the table will be rebuilt

◆ operator=()

ha_innobase_inplace_ctx & ha_innobase_inplace_ctx::operator= ( const ha_innobase_inplace_ctx )
private

◆ set_shared_data()

void ha_innobase_inplace_ctx::set_shared_data ( const inplace_alter_handler_ctx ctx)
inlineoverridevirtual

Set shared data between the passed in handler context and current context.

Parameters
[in]ctxhandler context

Reimplemented from inplace_alter_handler_ctx.

Member Data Documentation

◆ add_autoinc

const ulint ha_innobase_inplace_ctx::add_autoinc

added AUTO_INCREMENT column position, or ULINT_UNDEFINED

◆ add_cols

const dtuple_t* ha_innobase_inplace_ctx::add_cols

default values of ADD COLUMN, or NULL

◆ add_fk

dict_foreign_t** ha_innobase_inplace_ctx::add_fk

InnoDB foreign key constraints being added.

◆ add_index

dict_index_t** ha_innobase_inplace_ctx::add_index

InnoDB indexes being created.

◆ add_key_numbers

const ulint* ha_innobase_inplace_ctx::add_key_numbers

MySQL key numbers for the InnoDB indexes that are being created.

◆ add_vcol

dict_v_col_t* ha_innobase_inplace_ctx::add_vcol

virtual columns to be added

◆ add_vcol_name

const char** ha_innobase_inplace_ctx::add_vcol_name

◆ col_map

const ulint* ha_innobase_inplace_ctx::col_map

mapping of old column numbers to new ones, or NULL

◆ col_names

const char** ha_innobase_inplace_ctx::col_names

new column names, or NULL if nothing was renamed

◆ drop_fk

dict_foreign_t** ha_innobase_inplace_ctx::drop_fk

InnoDB foreign key constraints being dropped.

◆ drop_index

dict_index_t** ha_innobase_inplace_ctx::drop_index

InnoDB indexes being dropped.

◆ drop_vcol

dict_v_col_t* ha_innobase_inplace_ctx::drop_vcol

virtual columns to be dropped

◆ drop_vcol_name

const char** ha_innobase_inplace_ctx::drop_vcol_name

◆ fts_drop_aux_vec

aux_name_vec_t* ha_innobase_inplace_ctx::fts_drop_aux_vec

FTS AUX Tables to drop.

◆ heap

mem_heap_t* ha_innobase_inplace_ctx::heap

memory heap

◆ m_stage

Alter_stage* ha_innobase_inplace_ctx::m_stage

ALTER TABLE stage progress recorder.

◆ max_autoinc

ulonglong ha_innobase_inplace_ctx::max_autoinc

maximum auto-increment value

◆ new_table

dict_table_t* ha_innobase_inplace_ctx::new_table

table where the indexes are being created or dropped

◆ num_to_add_fk

const ulint ha_innobase_inplace_ctx::num_to_add_fk

number of InnoDB foreign key constraints being dropped

◆ num_to_add_index

ulint ha_innobase_inplace_ctx::num_to_add_index

number of InnoDB indexes being created

◆ num_to_drop_fk

const ulint ha_innobase_inplace_ctx::num_to_drop_fk

number of InnoDB foreign key constraints being dropped

◆ num_to_drop_index

const ulint ha_innobase_inplace_ctx::num_to_drop_index

number of InnoDB indexes being dropped

◆ num_to_rename

const ulint ha_innobase_inplace_ctx::num_to_rename

number of InnoDB indexes being renamed

◆ old_table

dict_table_t* ha_innobase_inplace_ctx::old_table

original table (if rebuilt, differs from indexed_table)

◆ online

bool ha_innobase_inplace_ctx::online

whether to create the indexes online

◆ prebuilt

row_prebuilt_t* ha_innobase_inplace_ctx::prebuilt

The prebuilt struct of the creating instance.

◆ rename

dict_index_t** ha_innobase_inplace_ctx::rename

InnoDB indexes being renamed.

◆ sequence

ddl::Sequence ha_innobase_inplace_ctx::sequence

autoinc sequence to use

◆ skip_pk_sort

bool ha_innobase_inplace_ctx::skip_pk_sort

whether the order of the clustered index is unchanged

◆ thr

que_thr_t* ha_innobase_inplace_ctx::thr

Dummy query graph.

◆ tmp_name

const char* ha_innobase_inplace_ctx::tmp_name

temporary table name to use for old table when renaming tables

◆ trx

trx_t* ha_innobase_inplace_ctx::trx

dictionary transaction


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