GPUdb C++ API  Version 7.2.2.4
admin_rebalance.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 __ADMIN_REBALANCE_H__
7 #define __ADMIN_REBALANCE_H__
8 
9 namespace gpudb
10 {
46  {
51  options(std::map<std::string, std::string>())
52  {
53  }
54 
233  AdminRebalanceRequest(const std::map<std::string, std::string>& options_):
234  options( options_ )
235  {
236  }
237 
362  std::map<std::string, std::string> options;
363  };
364 } // end namespace gpudb
365 
366 namespace avro
367 {
368  template<> struct codec_traits<gpudb::AdminRebalanceRequest>
369  {
370  static void encode(Encoder& e, const gpudb::AdminRebalanceRequest& v)
371  {
372  ::avro::encode(e, v.options);
373  }
374 
375  static void decode(Decoder& d, gpudb::AdminRebalanceRequest& v)
376  {
377  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
378  {
379  const std::vector<size_t> fo = rd->fieldOrder();
380 
381  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
382  {
383  switch (*it)
384  {
385  case 0:
386  ::avro::decode(d, v.options);
387  break;
388 
389  default:
390  break;
391  }
392  }
393  }
394  else
395  {
396  ::avro::decode(d, v.options);
397  }
398  }
399  };
400 } // end namespace avro
401 
402 namespace gpudb
403 {
410  {
415  info(std::map<std::string, std::string>())
416  {
417  }
418 
422  std::map<std::string, std::string> info;
423  };
424 } // end namespace gpudb
425 
426 namespace avro
427 {
428  template<> struct codec_traits<gpudb::AdminRebalanceResponse>
429  {
430  static void encode(Encoder& e, const gpudb::AdminRebalanceResponse& v)
431  {
432  ::avro::encode(e, v.info);
433  }
434 
435  static void decode(Decoder& d, gpudb::AdminRebalanceResponse& v)
436  {
437  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
438  {
439  const std::vector<size_t> fo = rd->fieldOrder();
440 
441  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
442  {
443  switch (*it)
444  {
445  case 0:
446  ::avro::decode(d, v.info);
447  break;
448 
449  default:
450  break;
451  }
452  }
453  }
454  else
455  {
456  ::avro::decode(d, v.info);
457  }
458  }
459  };
460 } // end namespace avro
461 
462 #endif // __ADMIN_REBALANCE_H__
std::map< std::string, std::string > info
Additional information.
AdminRebalanceResponse()
Constructs an AdminRebalanceResponse object with default parameters.
A set of parameters for GPUdb::adminRebalance.
AdminRebalanceRequest()
Constructs an AdminRebalanceRequest object with default parameters.
A set of results returned by GPUdb::adminRebalance.
std::map< std::string, std::string > options
Optional parameters.
AdminRebalanceRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminRebalanceRequest object with the specified parameters.