GPUdb C++ API  Version 6.1.0.0
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 
186  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
187  propertyUpdatesMap( propertyUpdatesMap_ ),
188  options( options_ )
189  {
190  }
191 
192  std::map<std::string, std::string> propertyUpdatesMap;
193  std::map<std::string, std::string> options;
194  };
195 }
196 
197 namespace avro
198 {
199  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
200  {
201  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
202  {
203  ::avro::encode(e, v.propertyUpdatesMap);
204  ::avro::encode(e, v.options);
205  }
206 
207  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
208  {
209  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
210  {
211  const std::vector<size_t> fo = rd->fieldOrder();
212 
213  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
214  {
215  switch (*it)
216  {
217  case 0:
218  ::avro::decode(d, v.propertyUpdatesMap);
219  break;
220 
221  case 1:
222  ::avro::decode(d, v.options);
223  break;
224 
225  default:
226  break;
227  }
228  }
229  }
230  else
231  {
232  ::avro::decode(d, v.propertyUpdatesMap);
233  ::avro::decode(d, v.options);
234  }
235  }
236  };
237 }
238 
239 namespace gpudb
240 {
241 
255  {
256 
262  updatedPropertiesMap(std::map<std::string, std::string>())
263  {
264  }
265 
266  std::map<std::string, std::string> updatedPropertiesMap;
267  };
268 }
269 
270 namespace avro
271 {
272  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
273  {
274  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
275  {
276  ::avro::encode(e, v.updatedPropertiesMap);
277  }
278 
279  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
280  {
281  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
282  {
283  const std::vector<size_t> fo = rd->fieldOrder();
284 
285  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
286  {
287  switch (*it)
288  {
289  case 0:
290  ::avro::decode(d, v.updatedPropertiesMap);
291  break;
292 
293  default:
294  break;
295  }
296  }
297  }
298  else
299  {
300  ::avro::decode(d, v.updatedPropertiesMap);
301  }
302  }
303  };
304 }
305 
306 #endif
A set of input parameters for alterSystemProperties(const AlterSystemPropertiesRequest&) 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 alterSystemProperties(const AlterSystemPropertiesRequest&) 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