GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_backup_begin.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 __ADMIN_BACKUP_BEGIN_H__
7 #define __ADMIN_BACKUP_BEGIN_H__
8 
9 namespace gpudb
10 {
11 
23  {
24 
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
41  AdminBackupBeginRequest(const std::map<std::string, std::string>& options_):
42  options( options_ )
43  {
44  }
45 
46  std::map<std::string, std::string> options;
47  };
48 }
49 
50 namespace avro
51 {
52  template<> struct codec_traits<gpudb::AdminBackupBeginRequest>
53  {
54  static void encode(Encoder& e, const gpudb::AdminBackupBeginRequest& v)
55  {
56  ::avro::encode(e, v.options);
57  }
58 
59  static void decode(Decoder& d, gpudb::AdminBackupBeginRequest& v)
60  {
61  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
62  {
63  const std::vector<size_t> fo = rd->fieldOrder();
64 
65  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
66  {
67  switch (*it)
68  {
69  case 0:
70  ::avro::decode(d, v.options);
71  break;
72 
73  default:
74  break;
75  }
76  }
77  }
78  else
79  {
80  ::avro::decode(d, v.options);
81  }
82  }
83  };
84 }
85 
86 namespace gpudb
87 {
88 
100  {
101 
107  info(std::map<std::string, std::string>())
108  {
109  }
110 
111  std::map<std::string, std::string> info;
112  };
113 }
114 
115 namespace avro
116 {
117  template<> struct codec_traits<gpudb::AdminBackupBeginResponse>
118  {
119  static void encode(Encoder& e, const gpudb::AdminBackupBeginResponse& v)
120  {
121  ::avro::encode(e, v.info);
122  }
123 
124  static void decode(Decoder& d, gpudb::AdminBackupBeginResponse& v)
125  {
126  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
127  {
128  const std::vector<size_t> fo = rd->fieldOrder();
129 
130  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
131  {
132  switch (*it)
133  {
134  case 0:
135  ::avro::decode(d, v.info);
136  break;
137 
138  default:
139  break;
140  }
141  }
142  }
143  else
144  {
145  ::avro::decode(d, v.info);
146  }
147  }
148  };
149 }
150 
151 #endif
std::map< std::string, std::string > info
A set of input parameters for const.
AdminBackupBeginRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminBackupBeginRequest object with the specified parameters.
A set of output parameters for const.
AdminBackupBeginRequest()
Constructs an AdminBackupBeginRequest object with default parameter values.
AdminBackupBeginResponse()
Constructs an AdminBackupBeginResponse object with default parameter values.
std::map< std::string, std::string > options