6 #ifndef __VERIFY_BACKUP_H__ 7 #define __VERIFY_BACKUP_H__ 34 options(std::map<std::string, std::string>())
61 VerifyBackupRequest(
const std::string& backupName_,
const std::string& datasourceName_,
const std::map<std::string, std::string>& options_):
91 std::map<std::string, std::string>
options;
97 template<>
struct codec_traits<
gpudb::VerifyBackupRequest>
108 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
110 const std::vector<size_t> fo = rd->fieldOrder();
112 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158 backupIds(std::vector<std::vector<int64_t> >()),
159 errors(std::vector<std::vector<std::string> >()),
160 info(std::map<std::string, std::string>())
182 std::vector<std::vector<std::string> >
errors;
187 std::map<std::string, std::string>
info;
193 template<>
struct codec_traits<
gpudb::VerifyBackupResponse>
200 ::avro::encode(e, v.
errors);
201 ::avro::encode(e, v.
info);
206 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
208 const std::vector<size_t> fo = rd->fieldOrder();
210 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
227 ::avro::decode(d, v.
errors);
231 ::avro::decode(d, v.
info);
244 ::avro::decode(d, v.
errors);
245 ::avro::decode(d, v.
info);
251 #endif // __VERIFY_BACKUP_H__ VerifyBackupResponse()
Constructs a VerifyBackupResponse object with default parameters.
VerifyBackupRequest(const std::string &backupName_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a VerifyBackupRequest object with the specified parameters.
std::string backupName
Name of the backup.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > backupNames
Backup name(s).
A set of parameters for GPUdb::verifyBackup.
std::string backupName
Value of backupName.
std::vector< std::vector< std::string > > errors
Any errors detected from the inspection of each backup.
std::vector< std::vector< int64_t > > backupIds
IDs of individual snapshots per backup name.
VerifyBackupRequest()
Constructs a VerifyBackupRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::string datasourceName
Data source through which the backup is accessible.
A set of results returned by GPUdb::verifyBackup.