A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
StoragePinPage.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* *
3
* Copyright 2018 Rice University *
4
* *
5
* Licensed under the Apache License, Version 2.0 (the "License"); *
6
* you may not use this file except in compliance with the License. *
7
* You may obtain a copy of the License at *
8
* *
9
* http://www.apache.org/licenses/LICENSE-2.0 *
10
* *
11
* Unless required by applicable law or agreed to in writing, software *
12
* distributed under the License is distributed on an "AS IS" BASIS, *
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14
* See the License for the specific language governing permissions and *
15
* limitations under the License. *
16
* *
17
*****************************************************************************/
18
/*
19
* StoragePinPage.h
20
*
21
* Created on: Feb 29, 2016
22
* Author: Jia
23
*/
24
25
#ifndef SRC_BUILTINPDBOBJECTS_HEADERS_PINPAGE_H_
26
#define SRC_BUILTINPDBOBJECTS_HEADERS_PINPAGE_H_
27
28
#include "
Object.h
"
29
#include "
DataTypes.h
"
30
31
// PRELOAD %StoragePinPage%
32
33
namespace
pdb {
34
// this object type is sent to the server to tell it to pin a page
35
class
StoragePinPage
:
public
pdb::Object
{
36
37
38
public
:
39
StoragePinPage
() {}
40
41
~StoragePinPage
() {}
42
43
StoragePinPage
(
bool
wasNewPage
,
44
NodeID
nodeId
,
45
DatabaseID
dbId
,
46
UserTypeID
userTypeId
,
47
SetID
setId
,
48
PageID
pageId
)
49
: wasNewPage(wasNewPage),
50
nodeId(nodeId),
51
dbId(dbId),
52
userTypeId(userTypeId),
53
setId(setId),
54
pageId(pageId) {}
55
56
//
57
bool
getWasNewPage
() {
58
return
this->
wasNewPage
;
59
}
60
61
void
setWasNewPage
(
bool
wasNewPage
) {
62
this->wasNewPage =
wasNewPage
;
63
}
64
65
NodeID
getNodeID
() {
66
return
this->
nodeId
;
67
}
68
69
void
setNodeID
(
NodeID
nodeId
) {
70
this->nodeId =
nodeId
;
71
}
72
73
DatabaseID
getDatabaseID
() {
74
return
this->
dbId
;
75
}
76
77
void
setDatabaseID
(
DatabaseID
dbId
) {
78
this->dbId =
dbId
;
79
}
80
81
UserTypeID
getUserTypeID
() {
82
return
this->
userTypeId
;
83
}
84
85
void
setUserTypeID
(
UserTypeID
typeId) {
86
this->
userTypeId
= typeId;
87
}
88
89
SetID
getSetID
() {
90
return
this->
setId
;
91
}
92
93
void
setSetID
(
SetID
setId
) {
94
this->setId =
setId
;
95
}
96
97
PageID
getPageID
() {
98
return
this->
pageId
;
99
}
100
101
void
setPageID
(
PageID
pageId
) {
102
this->pageId =
pageId
;
103
}
104
105
ENABLE_DEEP_COPY
106
107
private
:
108
bool
wasNewPage
;
109
NodeID
nodeId
;
110
DatabaseID
dbId
;
111
UserTypeID
userTypeId
;
112
SetID
setId
;
113
PageID
pageId
;
114
};
115
}
116
117
#endif
/* SRC_BUILTINPDBOBJECTS_HEADERS_PINPAGE_H_ */
ENABLE_DEEP_COPY
#define ENABLE_DEEP_COPY
Definition:
DeepCopy.h:52
SetID
unsigned int SetID
Definition:
DataTypes.h:31
pdb::StoragePinPage::setNodeID
void setNodeID(NodeID nodeId)
Definition:
StoragePinPage.h:69
pdb::StoragePinPage::setUserTypeID
void setUserTypeID(UserTypeID typeId)
Definition:
StoragePinPage.h:85
pdb::StoragePinPage::userTypeId
UserTypeID userTypeId
Definition:
StoragePinPage.h:111
pdb::Object
Definition:
Object.h:42
pdb::StoragePinPage::pageId
PageID pageId
Definition:
StoragePinPage.h:113
NodeID
unsigned int NodeID
Definition:
DataTypes.h:27
pdb::StoragePinPage::wasNewPage
bool wasNewPage
Definition:
StoragePinPage.h:108
pdb::StoragePinPage::getSetID
SetID getSetID()
Definition:
StoragePinPage.h:89
pdb::StoragePinPage::setDatabaseID
void setDatabaseID(DatabaseID dbId)
Definition:
StoragePinPage.h:77
pdb::StoragePinPage::StoragePinPage
StoragePinPage(bool wasNewPage, NodeID nodeId, DatabaseID dbId, UserTypeID userTypeId, SetID setId, PageID pageId)
Definition:
StoragePinPage.h:43
pdb::StoragePinPage::getDatabaseID
DatabaseID getDatabaseID()
Definition:
StoragePinPage.h:73
pdb::StoragePinPage::~StoragePinPage
~StoragePinPage()
Definition:
StoragePinPage.h:41
pdb::StoragePinPage::setId
SetID setId
Definition:
StoragePinPage.h:112
DataTypes.h
DatabaseID
unsigned int DatabaseID
Definition:
DataTypes.h:29
PageID
unsigned int PageID
Definition:
DataTypes.h:26
pdb::StoragePinPage::getUserTypeID
UserTypeID getUserTypeID()
Definition:
StoragePinPage.h:81
pdb::StoragePinPage::setPageID
void setPageID(PageID pageId)
Definition:
StoragePinPage.h:101
pdb::StoragePinPage::getPageID
PageID getPageID()
Definition:
StoragePinPage.h:97
Object.h
pdb::StoragePinPage::StoragePinPage
StoragePinPage()
Definition:
StoragePinPage.h:39
pdb::StoragePinPage::setWasNewPage
void setWasNewPage(bool wasNewPage)
Definition:
StoragePinPage.h:61
pdb::StoragePinPage::nodeId
NodeID nodeId
Definition:
StoragePinPage.h:109
pdb::StoragePinPage::setSetID
void setSetID(SetID setId)
Definition:
StoragePinPage.h:93
pdb::StoragePinPage::dbId
DatabaseID dbId
Definition:
StoragePinPage.h:110
pdb::StoragePinPage::getWasNewPage
bool getWasNewPage()
Definition:
StoragePinPage.h:57
pdb::StoragePinPage
Definition:
StoragePinPage.h:35
pdb::StoragePinPage::getNodeID
NodeID getNodeID()
Definition:
StoragePinPage.h:65
UserTypeID
unsigned int UserTypeID
Definition:
DataTypes.h:25
plinycompute
pdb
src
builtInPDBObjects
headers
StoragePinPage.h
Generated on Mon Jun 18 2018 18:10:35 by
1.8.6