Drizzled Public API Documentation

rem0cmp.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1994, 2009, 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 rem0cmp_h
28 #define rem0cmp_h
29 
30 #include "univ.i"
31 #include "data0data.h"
32 #include "data0type.h"
33 #include "dict0dict.h"
34 #include "rem0rec.h"
35 
36 /*************************************************************/
39 UNIV_INTERN
40 ibool
42 /*===============*/
43  const dict_col_t* col1,
44  const dict_col_t* col2,
45  ibool check_charsets);
47 /*************************************************************/
51 UNIV_INLINE
52 int
54 /*==========*/
55  ulint mtype,
56  ulint prtype,
57  const byte* data1,
59  ulint len1,
60  const byte* data2,
62  ulint len2);
63 /*************************************************************/
67 UNIV_INTERN
68 int
70 /*===============*/
71  ulint mtype,
72  ulint prtype,
73  const byte* data1,
75  ulint len1,
76  const byte* data2,
78  ulint len2);
79 /*************************************************************/
84 UNIV_INLINE
85 int
87 /*==============*/
88  const dfield_t* dfield1,
89  const dfield_t* dfield2);
90 /*************************************************************/
101 UNIV_INTERN
102 int
104 /*======================*/
105  const dtuple_t* dtuple,
106  const rec_t* rec,
110  const ulint* offsets,
111  ulint* matched_fields,
114  ulint* matched_bytes);
118 /**************************************************************/
122 UNIV_INTERN
123 int
125 /*===========*/
126  const dtuple_t* dtuple,
127  const rec_t* rec,
128  const ulint* offsets);
129 /**************************************************************/
133 UNIV_INTERN
134 ibool
136 /*========================*/
137  const dtuple_t* dtuple,
138  const rec_t* rec,
139  const ulint* offsets);
140 /*************************************************************/
144 UNIV_INTERN
145 int
147 /*===============*/
148  const rec_t* rec1,
149  const rec_t* rec2,
150  const ulint* offsets1,
151  const ulint* offsets2,
152  const dict_index_t* index,
153  ibool* null_eq);
155 /*************************************************************/
160 UNIV_INTERN
161 int
163 /*===================*/
164  const rec_t* rec1,
165  const rec_t* rec2,
166  const ulint* offsets1,
167  const ulint* offsets2,
168  dict_index_t* index,
169  ulint* matched_fields,
173  ulint* matched_bytes);
177 /*************************************************************/
182 UNIV_INLINE
183 int
185 /*========*/
186  const rec_t* rec1,
187  const rec_t* rec2,
188  const ulint* offsets1,
189  const ulint* offsets2,
190  dict_index_t* index);
193 #ifndef UNIV_NONINL
194 #include "rem0cmp.ic"
195 #endif
196 
197 #endif