Drizzled Public API Documentation

row0merge.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 2005, 2010, Innobase Oy. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
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 
55  const char* name;
56  ulint ind_type;
58  ulint n_fields;
61 };
62 
65 
66 /*********************************************************************/
69 UNIV_INTERN
70 ulint
72 /*=================*/
73  trx_t* trx,
74  dict_table_t* table,
75  enum lock_mode mode);
76 /*********************************************************************/
80 UNIV_INTERN
81 void
83 /*=================*/
84  dict_index_t* index,
85  dict_table_t* table,
86  trx_t* trx);
87 /*********************************************************************/
92 UNIV_INTERN
93 void
95 /*===================*/
96  trx_t* trx,
97  dict_table_t* table,
98  dict_index_t** index,
99  ulint num_created);
100 /*********************************************************************/
102 UNIV_INTERN
103 void
105 /*=============================*/
106 /*********************************************************************/
111 UNIV_INTERN
112 ulint
114 /*====================*/
115  dict_table_t* old_table,
117  dict_table_t* new_table,
119  const char* tmp_name,
120  trx_t* trx);
122 /*********************************************************************/
126 UNIV_INTERN
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 /*********************************************************************/
141 UNIV_INTERN
142 ulint
144 /*=====================*/
145  trx_t* trx,
146  dict_table_t* table);
147 /*********************************************************************/
150 UNIV_INTERN
153 /*===================*/
154  trx_t* trx,
155  dict_table_t* table,
156  const merge_index_def_t*index_def);
158 /*********************************************************************/
161 UNIV_INTERN
162 ibool
164 /*======================*/
165  const trx_t* trx,
166  const dict_index_t* index);
167 /*********************************************************************/
171 UNIV_INTERN
172 ulint
174 /*=================*/
175  trx_t* trx,
176  dict_table_t* table);
178 /*********************************************************************/
183 UNIV_INTERN
184 ulint
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 void row_merge_drop_temp_indexes(void)
Definition: row0merge.cc:2110
UNIV_INTERN ibool row_merge_is_index_usable(const trx_t *trx, const dict_index_t *index)
Definition: row0merge.cc:2600
UNIV_INTERN ulint row_merge_lock_table(trx_t *trx, dict_table_t *table, enum lock_mode mode)
Definition: row0merge.cc:1954
UNIV_INTERN ulint row_merge_drop_table(trx_t *trx, dict_table_t *table)
Definition: row0merge.cc:2614
UNIV_INTERN ulint row_merge_rename_indexes(trx_t *trx, dict_table_t *table)
Definition: row0merge.cc:2364
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)
Definition: row0merge.cc:2311
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)
Definition: row0merge.cc:2632
UNIV_INTERN ulint row_merge_rename_tables(dict_table_t *old_table, dict_table_t *new_table, const char *tmp_name, trx_t *trx)
Definition: row0merge.cc:2415
merge_index_field_t * fields
Definition: row0merge.h:60
const char * field_name
Definition: row0merge.h:47
UNIV_INTERN dict_index_t * row_merge_create_index(trx_t *trx, dict_table_t *table, const merge_index_def_t *index_def)
Definition: row0merge.cc:2547
UNIV_INTERN void row_merge_drop_index(dict_index_t *index, dict_table_t *table, trx_t *trx)
Definition: row0merge.cc:2034
const char * name
Definition: row0merge.h:55
UNIV_INTERN void row_merge_drop_indexes(trx_t *trx, dict_table_t *table, dict_index_t **index, ulint num_created)
Definition: row0merge.cc:2092