drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
row0merge.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 2005, 2010, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef row0merge_h
28#define row0merge_h
29
30#include "univ.i"
31#include "data0data.h"
32#include "dict0types.h"
33#include "trx0types.h"
34#include "que0types.h"
35#include "mtr0mtr.h"
36#include "rem0types.h"
37#include "rem0rec.h"
38#include "read0types.h"
39#include "btr0types.h"
40#include "row0mysql.h"
41#include "lock0types.h"
42
45 ulint prefix_len;
47 const char* field_name;
48};
49
52
62
65
66/*********************************************************************/
69UNIV_INTERN
70ulint
72/*=================*/
73 trx_t* trx,
74 dict_table_t* table,
75 enum lock_mode mode);
76/*********************************************************************/
80UNIV_INTERN
81void
83/*=================*/
84 dict_index_t* index,
85 dict_table_t* table,
86 trx_t* trx);
87/*********************************************************************/
92UNIV_INTERN
93void
95/*===================*/
96 trx_t* trx,
97 dict_table_t* table,
98 dict_index_t** index,
99 ulint num_created);
100/*********************************************************************/
102UNIV_INTERN
103void
105/*=============================*/
106/*********************************************************************/
111UNIV_INTERN
112ulint
114/*====================*/
115 dict_table_t* old_table,
117 dict_table_t* new_table,
119 const char* tmp_name,
120 trx_t* trx);
121
122/*********************************************************************/
126UNIV_INTERN
127dict_table_t*
129/*=============================*/
130 const char* table_name,
131 const merge_index_def_t*index_def,
133 const dict_table_t* table,
134 trx_t* trx);
136/*********************************************************************/
141UNIV_INTERN
142ulint
144/*=====================*/
145 trx_t* trx,
146 dict_table_t* table);
147/*********************************************************************/
150UNIV_INTERN
151dict_index_t*
153/*===================*/
154 trx_t* trx,
155 dict_table_t* table,
156 const merge_index_def_t*index_def);
158/*********************************************************************/
161UNIV_INTERN
162ibool
164/*======================*/
165 const trx_t* trx,
166 const dict_index_t* index);
167/*********************************************************************/
171UNIV_INTERN
172ulint
174/*=================*/
175 trx_t* trx,
176 dict_table_t* table);
177
178/*********************************************************************/
183UNIV_INTERN
184ulint
186/*====================*/
187 trx_t* trx,
188 dict_table_t* old_table,
190 dict_table_t* new_table,
193 dict_index_t** indexes,
194 ulint n_indexes,
195 TABLE* table);
198#endif /* row0merge.h */
UNIV_INTERN dict_index_t * row_merge_create_index(trx_t *trx, dict_table_t *table, const merge_index_def_t *index_def)
struct merge_index_def_struct merge_index_def_t
Definition row0merge.h:64
UNIV_INTERN void row_merge_drop_indexes(trx_t *trx, dict_table_t *table, dict_index_t **index, ulint num_created)
UNIV_INTERN void row_merge_drop_temp_indexes(void)
UNIV_INTERN ibool row_merge_is_index_usable(const trx_t *trx, const dict_index_t *index)
UNIV_INTERN ulint row_merge_rename_tables(dict_table_t *old_table, dict_table_t *new_table, const char *tmp_name, trx_t *trx)
UNIV_INTERN ulint row_merge_build_indexes(trx_t *trx, dict_table_t *old_table, dict_table_t *new_table, dict_index_t **indexes, ulint n_indexes, TABLE *table)
UNIV_INTERN ulint row_merge_lock_table(trx_t *trx, dict_table_t *table, enum lock_mode mode)
struct merge_index_field_struct merge_index_field_t
Definition row0merge.h:51
UNIV_INTERN dict_table_t * row_merge_create_temporary_table(const char *table_name, const merge_index_def_t *index_def, const dict_table_t *table, trx_t *trx)
UNIV_INTERN void row_merge_drop_index(dict_index_t *index, dict_table_t *table, trx_t *trx)
UNIV_INTERN ulint row_merge_drop_table(trx_t *trx, dict_table_t *table)
UNIV_INTERN ulint row_merge_rename_indexes(trx_t *trx, dict_table_t *table)
const char * name
Definition row0merge.h:55
merge_index_field_t * fields
Definition row0merge.h:60
const char * field_name
Definition row0merge.h:47