GPUdb C++ API  Version 7.2.2.4
admin_verify_db.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_VERIFY_DB_H__
7 #define __ADMIN_VERIFY_DB_H__
8 
9 namespace gpudb
10 {
21  {
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
186  AdminVerifyDbRequest(const std::map<std::string, std::string>& options_):
187  options( options_ )
188  {
189  }
190 
301  std::map<std::string, std::string> options;
302  };
303 } // end namespace gpudb
304 
305 namespace avro
306 {
307  template<> struct codec_traits<gpudb::AdminVerifyDbRequest>
308  {
309  static void encode(Encoder& e, const gpudb::AdminVerifyDbRequest& v)
310  {
311  ::avro::encode(e, v.options);
312  }
313 
314  static void decode(Decoder& d, gpudb::AdminVerifyDbRequest& v)
315  {
316  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
317  {
318  const std::vector<size_t> fo = rd->fieldOrder();
319 
320  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
321  {
322  switch (*it)
323  {
324  case 0:
325  ::avro::decode(d, v.options);
326  break;
327 
328  default:
329  break;
330  }
331  }
332  }
333  else
334  {
335  ::avro::decode(d, v.options);
336  }
337  }
338  };
339 } // end namespace avro
340 
341 namespace gpudb
342 {
349  {
354  verifiedOk(bool()),
355  errorList(std::vector<std::string>()),
356  orphanedTablesTotalSize(int64_t()),
357  info(std::map<std::string, std::string>())
358  {
359  }
360 
366 
371  std::vector<std::string> errorList;
372 
384 
388  std::map<std::string, std::string> info;
389  };
390 } // end namespace gpudb
391 
392 namespace avro
393 {
394  template<> struct codec_traits<gpudb::AdminVerifyDbResponse>
395  {
396  static void encode(Encoder& e, const gpudb::AdminVerifyDbResponse& v)
397  {
398  ::avro::encode(e, v.verifiedOk);
399  ::avro::encode(e, v.errorList);
400  ::avro::encode(e, v.orphanedTablesTotalSize);
401  ::avro::encode(e, v.info);
402  }
403 
404  static void decode(Decoder& d, gpudb::AdminVerifyDbResponse& v)
405  {
406  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
407  {
408  const std::vector<size_t> fo = rd->fieldOrder();
409 
410  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
411  {
412  switch (*it)
413  {
414  case 0:
415  ::avro::decode(d, v.verifiedOk);
416  break;
417 
418  case 1:
419  ::avro::decode(d, v.errorList);
420  break;
421 
422  case 2:
423  ::avro::decode(d, v.orphanedTablesTotalSize);
424  break;
425 
426  case 3:
427  ::avro::decode(d, v.info);
428  break;
429 
430  default:
431  break;
432  }
433  }
434  }
435  else
436  {
437  ::avro::decode(d, v.verifiedOk);
438  ::avro::decode(d, v.errorList);
439  ::avro::decode(d, v.orphanedTablesTotalSize);
440  ::avro::decode(d, v.info);
441  }
442  }
443  };
444 } // end namespace avro
445 
446 #endif // __ADMIN_VERIFY_DB_H__
A set of results returned by GPUdb::adminVerifyDb.
bool verifiedOk
True if no errors were found, false otherwise.
AdminVerifyDbResponse()
Constructs an AdminVerifyDbResponse object with default parameters.
AdminVerifyDbRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminVerifyDbRequest object with the specified parameters.
A set of parameters for GPUdb::adminVerifyDb.
std::vector< std::string > errorList
List of errors found while validating the database internal state.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.
AdminVerifyDbRequest()
Constructs an AdminVerifyDbRequest object with default parameters.
int64_t orphanedTablesTotalSize
If verify_persist is true, verify_orphaned_tables_only is true or delete_orphaned_tables is true,...