MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NdbApiDriver.hpp
1
/* -*- mode: java; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=4:tabstop=4:smarttab:
3
*
4
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef NdbApiDriver_hpp
21
#define NdbApiDriver_hpp
22
23
#include <string>
24
25
#include "CrundDriver.hpp"
26
#include "CrundNdbApiOperations.hpp"
27
28
using
std::string;
29
30
// global type aliases
31
typedef
const
NdbDictionary::Table
*
NdbTable
;
32
33
class
NdbApiDriver
:
public
CrundDriver
{
34
public
:
35
36
// the generated features are OK
37
//NdbApiDriver() {}
38
//virtual ~NdbApsDriver() {}
39
//NdbApiDriver(const NdbApiDriver&) {}
40
//NdbApiDriver& operator=(const NdbApiDriver&) {}
41
42
protected
:
43
44
// NDB API resources
45
string
mgmdConnect;
46
string
catalog;
47
string
schema;
48
49
// the benchmark's basic database operations
50
static
CrundNdbApiOperations
* ops;
51
52
// NDB API intializers/finalizers
53
virtual
void
initProperties();
54
virtual
void
printProperties();
55
virtual
void
init();
56
virtual
void
close();
57
58
// NDB API operations
59
template
<
bool
feat >
void
initOperationsFeat();
60
template
<
bool
>
struct
ADelAllOp
;
61
template
<
bool
>
struct
B0DelAllOp
;
62
template
<
bool
,
bool
>
struct
AInsOp
;
63
template
<
bool
,
bool
>
struct
B0InsOp
;
64
template
<
const
char
**,
65
void (
CrundNdbApiOperations
::*)(
NdbTable
,int,int,bool),
66
bool
>
67
struct
AByPKOp
;
68
template
<
const
char
**,
69
void (
CrundNdbApiOperations
::*)(
NdbTable
,int,int,bool),
70
bool
>
71
struct
B0ByPKOp
;
72
template
<
const
char
**,
73
void (
CrundNdbApiOperations
::*)(
NdbTable
,int,int,bool,int),
74
bool
>
75
struct
LengthOp
;
76
template
<
const
char
**,
77
void (
CrundNdbApiOperations
::*)(
NdbTable
,int,int,bool,int),
78
bool
>
79
struct
ZeroLengthOp
;
80
template
<
const
char
**,
81
void (
CrundNdbApiOperations
::*)(int,bool),
82
bool
>
83
struct
RelOp
;
84
virtual
void
initOperations();
85
virtual
void
closeOperations();
86
87
// NDB API datastore operations
88
virtual
void
initConnection();
89
virtual
void
closeConnection();
90
virtual
void
clearPersistenceContext();
91
virtual
void
clearData();
92
};
93
94
#endif // Driver_hpp
storage
ndb
test
crund
src
crundndb
NdbApiDriver.hpp
Generated on Sat Nov 9 2013 01:28:17 for MySQL 5.6.14 Source Code Document by
1.8.1.2