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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BackendExecuteSelection.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 #ifndef BACKEND_EXECUTE_SELECTION_H
20 #define BACKEND_EXECUTE_SELECTION_H
21 
22 #include "Object.h"
23 #include "Handle.h"
24 #include "PDBString.h"
25 #include "DataTypes.h"
26 
27 // PRELOAD %BackendExecuteSelection%
28 
29 namespace pdb {
30 
31 // encapsulates a request to execute a selection query
33 
34 public:
36  UserTypeID typeIdIn,
37  SetID setIdIn,
38  DatabaseID dbIdOut,
39  UserTypeID typeIdOut,
40  SetID setIdOut) {
41  srcDatabaseID = dbIdIn;
42  srcUserTypeID = typeIdIn;
43  srcSetID = setIdIn;
44  destDatabaseID = dbIdOut;
45  destUserTypeID = typeIdOut;
46  destSetID = setIdOut;
47  }
48 
51 
53  return srcDatabaseID;
54  }
55 
57  return srcUserTypeID;
58  }
59 
61  return srcSetID;
62  }
63 
65  return destDatabaseID;
66  }
67 
69  return destUserTypeID;
70  }
71 
73  return destSetID;
74  }
75 
77 
78 private:
79  // this is the database ID of the source set
81 
82  // this is the type ID of the source set
84 
85  // this is the ID of the source set
87 
88  // this is the database ID of the destination set
90 
91  // this is the type ID of the destination set
93 
94  // this is the ID of the destination set
96 };
97 }
98 
99 #endif
#define ENABLE_DEEP_COPY
Definition: DeepCopy.h:52
unsigned int SetID
Definition: DataTypes.h:31
BackendExecuteSelection(DatabaseID dbIdIn, UserTypeID typeIdIn, SetID setIdIn, DatabaseID dbIdOut, UserTypeID typeIdOut, SetID setIdOut)
unsigned int DatabaseID
Definition: DataTypes.h:29
unsigned int UserTypeID
Definition: DataTypes.h:25