GPUdb C++ API  Version 7.2.3.0
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 
201  AdminVerifyDbRequest(const std::map<std::string, std::string>& options_):
202  options( options_ )
203  {
204  }
205 
323  std::map<std::string, std::string> options;
324  };
325 } // end namespace gpudb
326 
327 namespace avro
328 {
329  template<> struct codec_traits<gpudb::AdminVerifyDbRequest>
330  {
331  static void encode(Encoder& e, const gpudb::AdminVerifyDbRequest& v)
332  {
333  ::avro::encode(e, v.options);
334  }
335 
336  static void decode(Decoder& d, gpudb::AdminVerifyDbRequest& v)
337  {
338  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
339  {
340  const std::vector<size_t> fo = rd->fieldOrder();
341 
342  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
343  {
344  switch (*it)
345  {
346  case 0:
347  ::avro::decode(d, v.options);
348  break;
349 
350  default:
351  break;
352  }
353  }
354  }
355  else
356  {
357  ::avro::decode(d, v.options);
358  }
359  }
360  };
361 } // end namespace avro
362 
363 namespace gpudb
364 {
371  {
376  verifiedOk(bool()),
377  errorList(std::vector<std::string>()),
378  orphanedTablesTotalSize(int64_t()),
379  info(std::map<std::string, std::string>())
380  {
381  }
382 
388 
393  std::vector<std::string> errorList;
394 
406 
410  std::map<std::string, std::string> info;
411  };
412 } // end namespace gpudb
413 
414 namespace avro
415 {
416  template<> struct codec_traits<gpudb::AdminVerifyDbResponse>
417  {
418  static void encode(Encoder& e, const gpudb::AdminVerifyDbResponse& v)
419  {
420  ::avro::encode(e, v.verifiedOk);
421  ::avro::encode(e, v.errorList);
422  ::avro::encode(e, v.orphanedTablesTotalSize);
423  ::avro::encode(e, v.info);
424  }
425 
426  static void decode(Decoder& d, gpudb::AdminVerifyDbResponse& v)
427  {
428  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
429  {
430  const std::vector<size_t> fo = rd->fieldOrder();
431 
432  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
433  {
434  switch (*it)
435  {
436  case 0:
437  ::avro::decode(d, v.verifiedOk);
438  break;
439 
440  case 1:
441  ::avro::decode(d, v.errorList);
442  break;
443 
444  case 2:
445  ::avro::decode(d, v.orphanedTablesTotalSize);
446  break;
447 
448  case 3:
449  ::avro::decode(d, v.info);
450  break;
451 
452  default:
453  break;
454  }
455  }
456  }
457  else
458  {
459  ::avro::decode(d, v.verifiedOk);
460  ::avro::decode(d, v.errorList);
461  ::avro::decode(d, v.orphanedTablesTotalSize);
462  ::avro::decode(d, v.info);
463  }
464  }
465  };
466 } // end namespace avro
467 
468 #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,...