GPUdb C++ API  Version 6.2.0.3
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 
196  AlterSystemPropertiesRequest(const std::map<std::string, std::string>& propertyUpdatesMap_, const std::map<std::string, std::string>& options_):
197  propertyUpdatesMap( propertyUpdatesMap_ ),
198  options( options_ )
199  {
200  }
201 
202  std::map<std::string, std::string> propertyUpdatesMap;
203  std::map<std::string, std::string> options;
204  };
205 }
206 
207 namespace avro
208 {
209  template<> struct codec_traits<gpudb::AlterSystemPropertiesRequest>
210  {
211  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesRequest& v)
212  {
213  ::avro::encode(e, v.propertyUpdatesMap);
214  ::avro::encode(e, v.options);
215  }
216 
217  static void decode(Decoder& d, gpudb::AlterSystemPropertiesRequest& v)
218  {
219  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
220  {
221  const std::vector<size_t> fo = rd->fieldOrder();
222 
223  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
224  {
225  switch (*it)
226  {
227  case 0:
228  ::avro::decode(d, v.propertyUpdatesMap);
229  break;
230 
231  case 1:
232  ::avro::decode(d, v.options);
233  break;
234 
235  default:
236  break;
237  }
238  }
239  }
240  else
241  {
242  ::avro::decode(d, v.propertyUpdatesMap);
243  ::avro::decode(d, v.options);
244  }
245  }
246  };
247 }
248 
249 namespace gpudb
250 {
251 
265  {
266 
272  updatedPropertiesMap(std::map<std::string, std::string>())
273  {
274  }
275 
276  std::map<std::string, std::string> updatedPropertiesMap;
277  };
278 }
279 
280 namespace avro
281 {
282  template<> struct codec_traits<gpudb::AlterSystemPropertiesResponse>
283  {
284  static void encode(Encoder& e, const gpudb::AlterSystemPropertiesResponse& v)
285  {
286  ::avro::encode(e, v.updatedPropertiesMap);
287  }
288 
289  static void decode(Decoder& d, gpudb::AlterSystemPropertiesResponse& v)
290  {
291  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
292  {
293  const std::vector<size_t> fo = rd->fieldOrder();
294 
295  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
296  {
297  switch (*it)
298  {
299  case 0:
300  ::avro::decode(d, v.updatedPropertiesMap);
301  break;
302 
303  default:
304  break;
305  }
306  }
307  }
308  else
309  {
310  ::avro::decode(d, v.updatedPropertiesMap);
311  }
312  }
313  };
314 }
315 
316 #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