MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NextScan.hpp
1 /*
2  Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef NEXT_SCAN_HPP
19 #define NEXT_SCAN_HPP
20 
21 #include "SignalData.hpp"
22 
23 class NextScanReq {
24  friend class Dblqh;
25  friend class Dbacc;
26  friend class Dbtux;
27  friend class Dbtup;
28 public:
29  // two sets of defs picked from lqh/acc
30  enum ScanFlag {
31  ZSCAN_NEXT = 1,
32  ZSCAN_NEXT_COMMIT = 2,
33  ZSCAN_COMMIT = 3, // new
34  ZSCAN_CLOSE = 6,
35  ZSCAN_NEXT_ABORT = 12
36  };
37  STATIC_CONST( SignalLength = 3 );
38 private:
39  Uint32 accPtr; // scan record in ACC/TUX
40  Uint32 accOperationPtr;
41  Uint32 scanFlag;
42 };
43 
44 class NextScanConf {
45  friend class Dbacc;
46  friend class Dbtux;
47  friend class Dbtup;
48  friend class Dblqh;
49 public:
50  // length is less if no keyinfo or no next result
51  STATIC_CONST( SignalLength = 11 );
52  STATIC_CONST( SignalLengthNoKeyInfo = 6 );
53 private:
54  Uint32 scanPtr; // scan record in LQH
55  Uint32 accOperationPtr;
56  Uint32 fragId;
57  Uint32 localKey[2];
58  Uint32 gci;
59 };
60 
61 class NextScanRef {
62  friend class Dbtux;
63  friend class Dblqh;
64 public:
65  STATIC_CONST( SignalLength = 4 );
66 private:
67  Uint32 scanPtr;
68  Uint32 accOperationPtr;
69  Uint32 fragId;
70  Uint32 errorCode;
71 };
72 
73 #endif