GPUdb C++ API  Version 7.2.2.4
alter_wal.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ALTER_WAL_H__
7 #define __ALTER_WAL_H__
8 
9 namespace gpudb
10 {
19  {
24  tableNames(std::vector<std::string>()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
143  AlterWalRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
144  tableNames( tableNames_ ),
145  options( options_ )
146  {
147  }
148 
152  std::vector<std::string> tableNames;
153 
231  std::map<std::string, std::string> options;
232  };
233 } // end namespace gpudb
234 
235 namespace avro
236 {
237  template<> struct codec_traits<gpudb::AlterWalRequest>
238  {
239  static void encode(Encoder& e, const gpudb::AlterWalRequest& v)
240  {
241  ::avro::encode(e, v.tableNames);
242  ::avro::encode(e, v.options);
243  }
244 
245  static void decode(Decoder& d, gpudb::AlterWalRequest& v)
246  {
247  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
248  {
249  const std::vector<size_t> fo = rd->fieldOrder();
250 
251  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
252  {
253  switch (*it)
254  {
255  case 0:
256  ::avro::decode(d, v.tableNames);
257  break;
258 
259  case 1:
260  ::avro::decode(d, v.options);
261  break;
262 
263  default:
264  break;
265  }
266  }
267  }
268  else
269  {
270  ::avro::decode(d, v.tableNames);
271  ::avro::decode(d, v.options);
272  }
273  }
274  };
275 } // end namespace avro
276 
277 namespace gpudb
278 {
284  {
289  info(std::map<std::string, std::string>())
290  {
291  }
292 
296  std::map<std::string, std::string> info;
297  };
298 } // end namespace gpudb
299 
300 namespace avro
301 {
302  template<> struct codec_traits<gpudb::AlterWalResponse>
303  {
304  static void encode(Encoder& e, const gpudb::AlterWalResponse& v)
305  {
306  ::avro::encode(e, v.info);
307  }
308 
309  static void decode(Decoder& d, gpudb::AlterWalResponse& v)
310  {
311  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
312  {
313  const std::vector<size_t> fo = rd->fieldOrder();
314 
315  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
316  {
317  switch (*it)
318  {
319  case 0:
320  ::avro::decode(d, v.info);
321  break;
322 
323  default:
324  break;
325  }
326  }
327  }
328  else
329  {
330  ::avro::decode(d, v.info);
331  }
332  }
333  };
334 } // end namespace avro
335 
336 #endif // __ALTER_WAL_H__
AlterWalRequest()
Constructs an AlterWalRequest object with default parameters.
Definition: alter_wal.h:23
AlterWalRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs an AlterWalRequest object with the specified parameters.
Definition: alter_wal.h:143
AlterWalResponse()
Constructs an AlterWalResponse object with default parameters.
Definition: alter_wal.h:288
A set of parameters for GPUdb::alterWal.
Definition: alter_wal.h:18
A set of results returned by GPUdb::alterWal.
Definition: alter_wal.h:283
std::map< std::string, std::string > options
Optional parameters.
Definition: alter_wal.h:231
std::vector< std::string > tableNames
List of tables to modify.
Definition: alter_wal.h:152
std::map< std::string, std::string > info
Additional information.
Definition: alter_wal.h:296