GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
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 
151  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
152  propertyUpdatesMap( propertyUpdatesMap_ ),
153  options( options_ )
154  {
155  }
156 
157  std::map<std::string, std::string> propertyUpdatesMap;
158  std::map<std::string, std::string> options;
159  };
160 }
161 
162 namespace avro
163 {
164  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
165  {
166  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
167  {
168  ::avro::encode(e, v.propertyUpdatesMap);
169  ::avro::encode(e, v.options);
170  }
171 
172  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
173  {
174  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
175  {
176  const std::vector<size_t> fo = rd->fieldOrder();
177 
178  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
179  {
180  switch (*it)
181  {
182  case 0:
183  ::avro::decode(d, v.propertyUpdatesMap);
184  break;
185 
186  case 1:
187  ::avro::decode(d, v.options);
188  break;
189 
190  default:
191  break;
192  }
193  }
194  }
195  else
196  {
197  ::avro::decode(d, v.propertyUpdatesMap);
198  ::avro::decode(d, v.options);
199  }
200  }
201  };
202 }
203 
204 namespace gpudb
205 {
206 
220  {
221 
227  updatedPropertiesMap(std::map<std::string, std::string>())
228  {
229  }
230 
231  std::map<std::string, std::string> updatedPropertiesMap;
232  };
233 }
234 
235 namespace avro
236 {
237  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
238  {
239  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
240  {
241  ::avro::encode(e, v.updatedPropertiesMap);
242  }
243 
244  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
245  {
246  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
247  {
248  const std::vector<size_t> fo = rd->fieldOrder();
249 
250  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
251  {
252  switch (*it)
253  {
254  case 0:
255  ::avro::decode(d, v.updatedPropertiesMap);
256  break;
257 
258  default:
259  break;
260  }
261  }
262  }
263  else
264  {
265  ::avro::decode(d, v.updatedPropertiesMap);
266  }
267  }
268  };
269 }
270 
271 #endif
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