GPUdb C++ API  Version 7.2.3.0
show_resource_objects.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_RESOURCE_OBJECTS_H__
7 #define __SHOW_RESOURCE_OBJECTS_H__
8 
9 namespace gpudb
10 {
23  {
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
117  ShowResourceObjectsRequest(const std::map<std::string, std::string>& options_):
118  options( options_ )
119  {
120  }
121 
179  std::map<std::string, std::string> options;
180  };
181 } // end namespace gpudb
182 
183 namespace avro
184 {
185  template<> struct codec_traits<gpudb::ShowResourceObjectsRequest>
186  {
187  static void encode(Encoder& e, const gpudb::ShowResourceObjectsRequest& v)
188  {
189  ::avro::encode(e, v.options);
190  }
191 
192  static void decode(Decoder& d, gpudb::ShowResourceObjectsRequest& v)
193  {
194  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
195  {
196  const std::vector<size_t> fo = rd->fieldOrder();
197 
198  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
199  {
200  switch (*it)
201  {
202  case 0:
203  ::avro::decode(d, v.options);
204  break;
205 
206  default:
207  break;
208  }
209  }
210  }
211  else
212  {
213  ::avro::decode(d, v.options);
214  }
215  }
216  };
217 } // end namespace avro
218 
219 namespace gpudb
220 {
227  {
233  rankObjects(std::map<std::string, std::string>()),
234  info(std::map<std::string, std::string>())
235  {
236  }
237 
243  std::map<std::string, std::string> rankObjects;
244 
248  std::map<std::string, std::string> info;
249  };
250 } // end namespace gpudb
251 
252 namespace avro
253 {
254  template<> struct codec_traits<gpudb::ShowResourceObjectsResponse>
255  {
256  static void encode(Encoder& e, const gpudb::ShowResourceObjectsResponse& v)
257  {
258  ::avro::encode(e, v.rankObjects);
259  ::avro::encode(e, v.info);
260  }
261 
262  static void decode(Decoder& d, gpudb::ShowResourceObjectsResponse& v)
263  {
264  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
265  {
266  const std::vector<size_t> fo = rd->fieldOrder();
267 
268  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
269  {
270  switch (*it)
271  {
272  case 0:
273  ::avro::decode(d, v.rankObjects);
274  break;
275 
276  case 1:
277  ::avro::decode(d, v.info);
278  break;
279 
280  default:
281  break;
282  }
283  }
284  }
285  else
286  {
287  ::avro::decode(d, v.rankObjects);
288  ::avro::decode(d, v.info);
289  }
290  }
291  };
292 } // end namespace avro
293 
294 #endif // __SHOW_RESOURCE_OBJECTS_H__
A set of results returned by GPUdb::showResourceObjects.
ShowResourceObjectsRequest()
Constructs a ShowResourceObjectsRequest object with default parameters.
A set of parameters for GPUdb::showResourceObjects.
std::map< std::string, std::string > info
Additional information.
ShowResourceObjectsResponse()
Constructs a ShowResourceObjectsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
ShowResourceObjectsRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowResourceObjectsRequest object with the specified parameters.
std::map< std::string, std::string > rankObjects
Tier usage across ranks.