MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TupKey.hpp
1 /*
2  Copyright (C) 2003-2006, 2008 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef TUP_KEY_H
20 #define TUP_KEY_H
21 
22 #include "SignalData.hpp"
23 
24 class TupKeyReq {
28  friend class Dbtup;
29 
33  friend class Dblqh;
34 
38  friend bool printTUPKEYREQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
39 
40 public:
41  STATIC_CONST( SignalLength = 20 );
42 
43 private:
44 
48  Uint32 connectPtr;
49  Uint32 request;
50  Uint32 keyRef1;
51  Uint32 keyRef2;
52  Uint32 attrBufLen;
53  Uint32 opRef;
54  Uint32 applRef;
55  Uint32 storedProcedure;
56  Uint32 transId1;
57  Uint32 transId2;
58  Uint32 fragPtr;
59  Uint32 primaryReplica;
60  Uint32 coordinatorTC;
61  Uint32 tcOpIndex;
62  Uint32 savePointId;
63  Uint32 disk_page;
64  Uint32 m_row_id_page_no;
65  Uint32 m_row_id_page_idx;
66  Uint32 attrInfoIVal;
67  Uint32 deferred_constraints;
68 };
69 
70 class TupKeyConf {
74  friend class Dblqh;
75 
79  friend class Dbtup;
80 
84  friend bool printTUPKEYCONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
85 
86 public:
87  STATIC_CONST( SignalLength = 6 );
88 
89 private:
90 
94  Uint32 userPtr;
95  Uint32 readLength;
96  Uint32 writeLength;
97  Uint32 noFiredTriggers;
98  Uint32 lastRow;
99  Uint32 rowid;
100 };
101 
102 class TupKeyRef {
106  friend class Dblqh;
107 
111  friend class Dbtup;
112 
116  friend bool printTUPKEYREF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
117 
118 public:
119  STATIC_CONST( SignalLength = 2 );
120 
121 private:
122 
126  Uint32 userRef;
127  Uint32 errorCode;
128 };
129 
130 #endif