GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_system_properties.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 __ALTER_SYSTEM_PROPERTIES_H__
7 #define __ALTER_SYSTEM_PROPERTIES_H__
8 
9 namespace gpudb
10 {
11 
25  {
26 
32  propertyUpdatesMap(std::map<std::string, std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
306  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
307  propertyUpdatesMap( propertyUpdatesMap_ ),
308  options( options_ )
309  {
310  }
311 
312  std::map<std::string, std::string> propertyUpdatesMap;
313  std::map<std::string, std::string> options;
314  };
315 }
316 
317 namespace avro
318 {
319  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
320  {
321  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
322  {
323  ::avro::encode(e, v.propertyUpdatesMap);
324  ::avro::encode(e, v.options);
325  }
326 
327  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
328  {
329  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
330  {
331  const std::vector<size_t> fo = rd->fieldOrder();
332 
333  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
334  {
335  switch (*it)
336  {
337  case 0:
338  ::avro::decode(d, v.propertyUpdatesMap);
339  break;
340 
341  case 1:
342  ::avro::decode(d, v.options);
343  break;
344 
345  default:
346  break;
347  }
348  }
349  }
350  else
351  {
352  ::avro::decode(d, v.propertyUpdatesMap);
353  ::avro::decode(d, v.options);
354  }
355  }
356  };
357 }
358 
359 namespace gpudb
360 {
361 
375  {
376 
382  updatedPropertiesMap(std::map<std::string, std::string>()),
383  info(std::map<std::string, std::string>())
384  {
385  }
386 
387  std::map<std::string, std::string> updatedPropertiesMap;
388  std::map<std::string, std::string> info;
389  };
390 }
391 
392 namespace avro
393 {
394  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
395  {
396  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
397  {
398  ::avro::encode(e, v.updatedPropertiesMap);
399  ::avro::encode(e, v.info);
400  }
401 
402  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
403  {
404  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
405  {
406  const std::vector<size_t> fo = rd->fieldOrder();
407 
408  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
409  {
410  switch (*it)
411  {
412  case 0:
413  ::avro::decode(d, v.updatedPropertiesMap);
414  break;
415 
416  case 1:
417  ::avro::decode(d, v.info);
418  break;
419 
420  default:
421  break;
422  }
423  }
424  }
425  else
426  {
427  ::avro::decode(d, v.updatedPropertiesMap);
428  ::avro::decode(d, v.info);
429  }
430  }
431  };
432 }
433 
434 #endif
std::map< std::string, std::string > info
A set of input parameters for const.
std::map< std::string, std::string > updatedPropertiesMap
std::map< std::string, std::string > propertyUpdatesMap
AlterSystemPropertiesResponse()
Constructs an AlterSystemPropertiesResponse object with default parameter values. ...
AlterSystemPropertiesRequest()
Constructs an AlterSystemPropertiesRequest object with default parameter values.
A set of output parameters for const.
AlterSystemPropertiesRequest(const std::map< std::string, std::string > &propertyUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterSystemPropertiesRequest object with the specified parameters.
std::map< std::string, std::string > options