GPUdb C++ API  Version 7.2.2.4
admin_backup_begin.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 __ADMIN_BACKUP_BEGIN_H__
7 #define __ADMIN_BACKUP_BEGIN_H__
8 
9 namespace gpudb
10 {
24  {
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
41  AdminBackupBeginRequest(const std::map<std::string, std::string>& options_):
42  options( options_ )
43  {
44  }
45 
49  std::map<std::string, std::string> options;
50  };
51 } // end namespace gpudb
52 
53 namespace avro
54 {
55  template<> struct codec_traits<gpudb::AdminBackupBeginRequest>
56  {
57  static void encode(Encoder& e, const gpudb::AdminBackupBeginRequest& v)
58  {
59  ::avro::encode(e, v.options);
60  }
61 
62  static void decode(Decoder& d, gpudb::AdminBackupBeginRequest& v)
63  {
64  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65  {
66  const std::vector<size_t> fo = rd->fieldOrder();
67 
68  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
69  {
70  switch (*it)
71  {
72  case 0:
73  ::avro::decode(d, v.options);
74  break;
75 
76  default:
77  break;
78  }
79  }
80  }
81  else
82  {
83  ::avro::decode(d, v.options);
84  }
85  }
86  };
87 } // end namespace avro
88 
89 namespace gpudb
90 {
97  {
103  info(std::map<std::string, std::string>())
104  {
105  }
106 
110  std::map<std::string, std::string> info;
111  };
112 } // end namespace gpudb
113 
114 namespace avro
115 {
116  template<> struct codec_traits<gpudb::AdminBackupBeginResponse>
117  {
118  static void encode(Encoder& e, const gpudb::AdminBackupBeginResponse& v)
119  {
120  ::avro::encode(e, v.info);
121  }
122 
123  static void decode(Decoder& d, gpudb::AdminBackupBeginResponse& v)
124  {
125  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
126  {
127  const std::vector<size_t> fo = rd->fieldOrder();
128 
129  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
130  {
131  switch (*it)
132  {
133  case 0:
134  ::avro::decode(d, v.info);
135  break;
136 
137  default:
138  break;
139  }
140  }
141  }
142  else
143  {
144  ::avro::decode(d, v.info);
145  }
146  }
147  };
148 } // end namespace avro
149 
150 #endif // __ADMIN_BACKUP_BEGIN_H__
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::adminBackupBegin.
AdminBackupBeginRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminBackupBeginRequest object with the specified parameters.
A set of results returned by GPUdb::adminBackupBegin.
AdminBackupBeginRequest()
Constructs an AdminBackupBeginRequest object with default parameters.
AdminBackupBeginResponse()
Constructs an AdminBackupBeginResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.