GPUdb C++ API  Version 7.2.3.0
alter_backup.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_BACKUP_H__
7 #define __ALTER_BACKUP_H__
8 
9 namespace gpudb
10 {
20  {
25  backupName(std::string()),
26  action(std::string()),
27  value(std::string()),
28  datasinkName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
83  AlterBackupRequest(const std::string& backupName_, const std::string& action_, const std::string& value_, const std::string& datasinkName_, const std::map<std::string, std::string>& options_):
84  backupName( backupName_ ),
85  action( action_ ),
86  value( value_ ),
87  datasinkName( datasinkName_ ),
88  options( options_ )
89  {
90  }
91 
95  std::string backupName;
96 
114  std::string action;
115 
119  std::string value;
120 
124  std::string datasinkName;
125 
143  std::map<std::string, std::string> options;
144  };
145 } // end namespace gpudb
146 
147 namespace avro
148 {
149  template<> struct codec_traits<gpudb::AlterBackupRequest>
150  {
151  static void encode(Encoder& e, const gpudb::AlterBackupRequest& v)
152  {
153  ::avro::encode(e, v.backupName);
154  ::avro::encode(e, v.action);
155  ::avro::encode(e, v.value);
156  ::avro::encode(e, v.datasinkName);
157  ::avro::encode(e, v.options);
158  }
159 
160  static void decode(Decoder& d, gpudb::AlterBackupRequest& v)
161  {
162  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
163  {
164  const std::vector<size_t> fo = rd->fieldOrder();
165 
166  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
167  {
168  switch (*it)
169  {
170  case 0:
171  ::avro::decode(d, v.backupName);
172  break;
173 
174  case 1:
175  ::avro::decode(d, v.action);
176  break;
177 
178  case 2:
179  ::avro::decode(d, v.value);
180  break;
181 
182  case 3:
183  ::avro::decode(d, v.datasinkName);
184  break;
185 
186  case 4:
187  ::avro::decode(d, v.options);
188  break;
189 
190  default:
191  break;
192  }
193  }
194  }
195  else
196  {
197  ::avro::decode(d, v.backupName);
198  ::avro::decode(d, v.action);
199  ::avro::decode(d, v.value);
200  ::avro::decode(d, v.datasinkName);
201  ::avro::decode(d, v.options);
202  }
203  }
204  };
205 } // end namespace avro
206 
207 namespace gpudb
208 {
215  {
220  backupName(std::string()),
221  backupId(int64_t()),
222  totalBytes(int64_t()),
223  totalNumberOfRecords(int64_t()),
224  info(std::map<std::string, std::string>())
225  {
226  }
227 
231  std::string backupName;
232 
236  int64_t backupId;
237 
241  int64_t totalBytes;
242 
247 
251  std::map<std::string, std::string> info;
252  };
253 } // end namespace gpudb
254 
255 namespace avro
256 {
257  template<> struct codec_traits<gpudb::AlterBackupResponse>
258  {
259  static void encode(Encoder& e, const gpudb::AlterBackupResponse& v)
260  {
261  ::avro::encode(e, v.backupName);
262  ::avro::encode(e, v.backupId);
263  ::avro::encode(e, v.totalBytes);
264  ::avro::encode(e, v.totalNumberOfRecords);
265  ::avro::encode(e, v.info);
266  }
267 
268  static void decode(Decoder& d, gpudb::AlterBackupResponse& v)
269  {
270  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
271  {
272  const std::vector<size_t> fo = rd->fieldOrder();
273 
274  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
275  {
276  switch (*it)
277  {
278  case 0:
279  ::avro::decode(d, v.backupName);
280  break;
281 
282  case 1:
283  ::avro::decode(d, v.backupId);
284  break;
285 
286  case 2:
287  ::avro::decode(d, v.totalBytes);
288  break;
289 
290  case 3:
291  ::avro::decode(d, v.totalNumberOfRecords);
292  break;
293 
294  case 4:
295  ::avro::decode(d, v.info);
296  break;
297 
298  default:
299  break;
300  }
301  }
302  }
303  else
304  {
305  ::avro::decode(d, v.backupName);
306  ::avro::decode(d, v.backupId);
307  ::avro::decode(d, v.totalBytes);
308  ::avro::decode(d, v.totalNumberOfRecords);
309  ::avro::decode(d, v.info);
310  }
311  }
312  };
313 } // end namespace avro
314 
315 #endif // __ALTER_BACKUP_H__
std::string value
Action specific argument.
Definition: alter_backup.h:119
int64_t backupId
Backup ID.
Definition: alter_backup.h:236
std::string datasinkName
Datasink where backup will be stored.
Definition: alter_backup.h:124
std::string action
Operation to be applied.
Definition: alter_backup.h:114
int64_t totalNumberOfRecords
Total number of records affected alter operation.
Definition: alter_backup.h:246
AlterBackupRequest(const std::string &backupName_, const std::string &action_, const std::string &value_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
Constructs an AlterBackupRequest object with the specified parameters.
Definition: alter_backup.h:83
A set of results returned by GPUdb::alterBackup.
Definition: alter_backup.h:214
AlterBackupResponse()
Constructs an AlterBackupResponse object with default parameters.
Definition: alter_backup.h:219
A set of parameters for GPUdb::alterBackup.
Definition: alter_backup.h:19
std::string backupName
Name of the backup object to be altered.
Definition: alter_backup.h:95
std::map< std::string, std::string > options
Optional parameters.
Definition: alter_backup.h:143
std::string backupName
Value of backupName.
Definition: alter_backup.h:231
AlterBackupRequest()
Constructs an AlterBackupRequest object with default parameters.
Definition: alter_backup.h:24
int64_t totalBytes
Total size of files affected by alter operation.
Definition: alter_backup.h:241
std::map< std::string, std::string > info
Additional information.
Definition: alter_backup.h:251