GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_graph.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_GRAPH_H__
7 #define __SHOW_GRAPH_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
26  graphName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
56  ShowGraphRequest(const std::string& graphName_, const std::map<std::string, std::string>& options_):
57  graphName( graphName_ ),
58  options( options_ )
59  {
60  }
61 
62  std::string graphName;
63  std::map<std::string, std::string> options;
64  };
65 }
66 
67 namespace avro
68 {
69  template<> struct codec_traits<gpudb::ShowGraphRequest>
70  {
71  static void encode(Encoder& e, const gpudb::ShowGraphRequest& v)
72  {
73  ::avro::encode(e, v.graphName);
74  ::avro::encode(e, v.options);
75  }
76 
77  static void decode(Decoder& d, gpudb::ShowGraphRequest& v)
78  {
79  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
80  {
81  const std::vector<size_t> fo = rd->fieldOrder();
82 
83  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
84  {
85  switch (*it)
86  {
87  case 0:
88  ::avro::decode(d, v.graphName);
89  break;
90 
91  case 1:
92  ::avro::decode(d, v.options);
93  break;
94 
95  default:
96  break;
97  }
98  }
99  }
100  else
101  {
102  ::avro::decode(d, v.graphName);
103  ::avro::decode(d, v.options);
104  }
105  }
106  };
107 }
108 
109 namespace gpudb
110 {
111 
120  {
121 
126  result(bool()),
127  load(std::vector<int32_t>()),
128  memory(std::vector<int64_t>()),
129  graphNames(std::vector<std::string>()),
130  graphServerIds(std::vector<int32_t>()),
131  graphOwnerUserNames(std::vector<std::string>()),
132  graphOwnerResourceGroups(std::vector<std::string>()),
133  directed(std::vector<bool>()),
134  numNodes(std::vector<int64_t>()),
135  numEdges(std::vector<int64_t>()),
136  numBytes(std::vector<int64_t>()),
137  resourceCapacity(std::vector<int64_t>()),
138  isPersisted(std::vector<bool>()),
139  isPartitioned(std::vector<bool>()),
140  isSyncDb(std::vector<bool>()),
141  hasInsertTableMonitor(std::vector<bool>()),
142  originalRequest(std::vector<std::string>()),
143  info(std::map<std::string, std::string>())
144  {
145  }
146 
147  bool result;
148  std::vector<int32_t> load;
149  std::vector<int64_t> memory;
150  std::vector<std::string> graphNames;
151  std::vector<int32_t> graphServerIds;
152  std::vector<std::string> graphOwnerUserNames;
153  std::vector<std::string> graphOwnerResourceGroups;
154  std::vector<bool> directed;
155  std::vector<int64_t> numNodes;
156  std::vector<int64_t> numEdges;
157  std::vector<int64_t> numBytes;
158  std::vector<int64_t> resourceCapacity;
159  std::vector<bool> isPersisted;
160  std::vector<bool> isPartitioned;
161  std::vector<bool> isSyncDb;
162  std::vector<bool> hasInsertTableMonitor;
163  std::vector<std::string> originalRequest;
164  std::map<std::string, std::string> info;
165  };
166 }
167 
168 namespace avro
169 {
170  template<> struct codec_traits<gpudb::ShowGraphResponse>
171  {
172  static void encode(Encoder& e, const gpudb::ShowGraphResponse& v)
173  {
174  ::avro::encode(e, v.result);
175  ::avro::encode(e, v.load);
176  ::avro::encode(e, v.memory);
177  ::avro::encode(e, v.graphNames);
178  ::avro::encode(e, v.graphServerIds);
179  ::avro::encode(e, v.graphOwnerUserNames);
180  ::avro::encode(e, v.graphOwnerResourceGroups);
181  ::avro::encode(e, v.directed);
182  ::avro::encode(e, v.numNodes);
183  ::avro::encode(e, v.numEdges);
184  ::avro::encode(e, v.numBytes);
185  ::avro::encode(e, v.resourceCapacity);
186  ::avro::encode(e, v.isPersisted);
187  ::avro::encode(e, v.isPartitioned);
188  ::avro::encode(e, v.isSyncDb);
189  ::avro::encode(e, v.hasInsertTableMonitor);
190  ::avro::encode(e, v.originalRequest);
191  ::avro::encode(e, v.info);
192  }
193 
194  static void decode(Decoder& d, gpudb::ShowGraphResponse& v)
195  {
196  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
197  {
198  const std::vector<size_t> fo = rd->fieldOrder();
199 
200  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
201  {
202  switch (*it)
203  {
204  case 0:
205  ::avro::decode(d, v.result);
206  break;
207 
208  case 1:
209  ::avro::decode(d, v.load);
210  break;
211 
212  case 2:
213  ::avro::decode(d, v.memory);
214  break;
215 
216  case 3:
217  ::avro::decode(d, v.graphNames);
218  break;
219 
220  case 4:
221  ::avro::decode(d, v.graphServerIds);
222  break;
223 
224  case 5:
225  ::avro::decode(d, v.graphOwnerUserNames);
226  break;
227 
228  case 6:
229  ::avro::decode(d, v.graphOwnerResourceGroups);
230  break;
231 
232  case 7:
233  ::avro::decode(d, v.directed);
234  break;
235 
236  case 8:
237  ::avro::decode(d, v.numNodes);
238  break;
239 
240  case 9:
241  ::avro::decode(d, v.numEdges);
242  break;
243 
244  case 10:
245  ::avro::decode(d, v.numBytes);
246  break;
247 
248  case 11:
249  ::avro::decode(d, v.resourceCapacity);
250  break;
251 
252  case 12:
253  ::avro::decode(d, v.isPersisted);
254  break;
255 
256  case 13:
257  ::avro::decode(d, v.isPartitioned);
258  break;
259 
260  case 14:
261  ::avro::decode(d, v.isSyncDb);
262  break;
263 
264  case 15:
265  ::avro::decode(d, v.hasInsertTableMonitor);
266  break;
267 
268  case 16:
269  ::avro::decode(d, v.originalRequest);
270  break;
271 
272  case 17:
273  ::avro::decode(d, v.info);
274  break;
275 
276  default:
277  break;
278  }
279  }
280  }
281  else
282  {
283  ::avro::decode(d, v.result);
284  ::avro::decode(d, v.load);
285  ::avro::decode(d, v.memory);
286  ::avro::decode(d, v.graphNames);
287  ::avro::decode(d, v.graphServerIds);
288  ::avro::decode(d, v.graphOwnerUserNames);
289  ::avro::decode(d, v.graphOwnerResourceGroups);
290  ::avro::decode(d, v.directed);
291  ::avro::decode(d, v.numNodes);
292  ::avro::decode(d, v.numEdges);
293  ::avro::decode(d, v.numBytes);
294  ::avro::decode(d, v.resourceCapacity);
295  ::avro::decode(d, v.isPersisted);
296  ::avro::decode(d, v.isPartitioned);
297  ::avro::decode(d, v.isSyncDb);
298  ::avro::decode(d, v.hasInsertTableMonitor);
299  ::avro::decode(d, v.originalRequest);
300  ::avro::decode(d, v.info);
301  }
302  }
303  };
304 }
305 
306 #endif
ShowGraphResponse()
Constructs a ShowGraphResponse object with default parameter values.
Definition: show_graph.h:125
A set of input parameters for const.
Definition: show_graph.h:19
std::vector< int64_t > memory
Definition: show_graph.h:149
std::vector< std::string > graphOwnerResourceGroups
Definition: show_graph.h:153
std::vector< int64_t > resourceCapacity
Definition: show_graph.h:158
ShowGraphRequest()
Constructs a ShowGraphRequest object with default parameter values.
Definition: show_graph.h:25
std::vector< std::string > graphOwnerUserNames
Definition: show_graph.h:152
std::vector< int64_t > numEdges
Definition: show_graph.h:156
std::map< std::string, std::string > options
Definition: show_graph.h:63
std::vector< bool > isSyncDb
Definition: show_graph.h:161
std::vector< std::string > originalRequest
Definition: show_graph.h:163
std::vector< std::string > graphNames
Definition: show_graph.h:150
A set of output parameters for const.
Definition: show_graph.h:119
std::vector< bool > directed
Definition: show_graph.h:154
std::vector< bool > hasInsertTableMonitor
Definition: show_graph.h:162
ShowGraphRequest(const std::string &graphName_, const std::map< std::string, std::string > &options_)
Constructs a ShowGraphRequest object with the specified parameters.
Definition: show_graph.h:56
std::vector< bool > isPartitioned
Definition: show_graph.h:160
std::vector< int64_t > numBytes
Definition: show_graph.h:157
std::string graphName
Definition: show_graph.h:62
std::vector< bool > isPersisted
Definition: show_graph.h:159
std::vector< int64_t > numNodes
Definition: show_graph.h:155
std::vector< int32_t > load
Definition: show_graph.h:148
std::map< std::string, std::string > info
Definition: show_graph.h:164
std::vector< int32_t > graphServerIds
Definition: show_graph.h:151