GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_datasink.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_DATASINK_H__
7 #define __ALTER_DATASINK_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  name(std::string()),
28  datasinkUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
233  AlterDatasinkRequest(const std::string& name_, const std::map<std::string, std::string>& datasinkUpdatesMap_, const std::map<std::string, std::string>& options_):
234  name( name_ ),
235  datasinkUpdatesMap( datasinkUpdatesMap_ ),
236  options( options_ )
237  {
238  }
239 
240  std::string name;
241  std::map<std::string, std::string> datasinkUpdatesMap;
242  std::map<std::string, std::string> options;
243  };
244 }
245 
246 namespace avro
247 {
248  template<> struct codec_traits<gpudb::AlterDatasinkRequest>
249  {
250  static void encode(Encoder& e, const gpudb::AlterDatasinkRequest& v)
251  {
252  ::avro::encode(e, v.name);
253  ::avro::encode(e, v.datasinkUpdatesMap);
254  ::avro::encode(e, v.options);
255  }
256 
257  static void decode(Decoder& d, gpudb::AlterDatasinkRequest& v)
258  {
259  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
260  {
261  const std::vector<size_t> fo = rd->fieldOrder();
262 
263  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
264  {
265  switch (*it)
266  {
267  case 0:
268  ::avro::decode(d, v.name);
269  break;
270 
271  case 1:
272  ::avro::decode(d, v.datasinkUpdatesMap);
273  break;
274 
275  case 2:
276  ::avro::decode(d, v.options);
277  break;
278 
279  default:
280  break;
281  }
282  }
283  }
284  else
285  {
286  ::avro::decode(d, v.name);
287  ::avro::decode(d, v.datasinkUpdatesMap);
288  ::avro::decode(d, v.options);
289  }
290  }
291  };
292 }
293 
294 namespace gpudb
295 {
296 
305  {
306 
312  updatedPropertiesMap(std::map<std::string, std::string>()),
313  info(std::map<std::string, std::string>())
314  {
315  }
316 
317  std::map<std::string, std::string> updatedPropertiesMap;
318  std::map<std::string, std::string> info;
319  };
320 }
321 
322 namespace avro
323 {
324  template<> struct codec_traits<gpudb::AlterDatasinkResponse>
325  {
326  static void encode(Encoder& e, const gpudb::AlterDatasinkResponse& v)
327  {
328  ::avro::encode(e, v.updatedPropertiesMap);
329  ::avro::encode(e, v.info);
330  }
331 
332  static void decode(Decoder& d, gpudb::AlterDatasinkResponse& v)
333  {
334  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
335  {
336  const std::vector<size_t> fo = rd->fieldOrder();
337 
338  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
339  {
340  switch (*it)
341  {
342  case 0:
343  ::avro::decode(d, v.updatedPropertiesMap);
344  break;
345 
346  case 1:
347  ::avro::decode(d, v.info);
348  break;
349 
350  default:
351  break;
352  }
353  }
354  }
355  else
356  {
357  ::avro::decode(d, v.updatedPropertiesMap);
358  ::avro::decode(d, v.info);
359  }
360  }
361  };
362 }
363 
364 #endif
A set of input parameters for const.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
std::map< std::string, std::string > datasinkUpdatesMap
A set of output parameters for const.
AlterDatasinkRequest(const std::string &name_, const std::map< std::string, std::string > &datasinkUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterDatasinkRequest object with the specified parameters.
std::map< std::string, std::string > updatedPropertiesMap
AlterDatasinkRequest()
Constructs an AlterDatasinkRequest object with default parameter values.
AlterDatasinkResponse()
Constructs an AlterDatasinkResponse object with default parameter values.