6 #ifndef __CREATE_BACKUP_H__ 7 #define __CREATE_BACKUP_H__ 29 options(std::map<std::string, std::string>())
209 CreateBackupRequest(
const std::string& backupName_,
const std::string& backupType_,
const std::map<std::string, std::string>& backupObjectsMap_,
const std::string& datasinkName_,
const std::map<std::string, std::string>& options_):
360 template<>
struct codec_traits<
gpudb::CreateBackupRequest>
373 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
375 const std::vector<size_t> fo = rd->fieldOrder();
377 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
437 info(std::map<std::string, std::string>())
474 std::map<std::string, std::string>
info;
480 template<>
struct codec_traits<
gpudb::CreateBackupResponse>
490 ::avro::encode(e, v.
info);
495 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
497 const std::vector<size_t> fo = rd->fieldOrder();
499 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
528 ::avro::decode(d, v.
info);
544 ::avro::decode(d, v.
info);
550 #endif // __CREATE_BACKUP_H__ CreateBackupRequest()
Constructs a CreateBackupRequest object with default parameters.
CreateBackupRequest(const std::string &backupName_, const std::string &backupType_, const std::map< std::string, std::string > &backupObjectsMap_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
Constructs a CreateBackupRequest object with the specified parameters.
std::string datasinkName
Datasink where backup will be stored.
std::string backupType
Type of backup to create.
A set of parameters for GPUdb::createBackup.
int64_t totalNumberOfRecords
Total number of records that can be restored from this snapshot.
std::map< std::string, std::string > backupObjectsMap
Map of objects to be captured in the backup.
int64_t copiedRecords
Total number of records in all files copied for this snapshot.
std::string backupName
Value of backupName.
std::map< std::string, std::string > info
Additional information.
int64_t copiedBytes
Total size of all files copied for this snapshot.
A set of results returned by GPUdb::createBackup.
std::string backupName
Name for this backup object.
int64_t copiedFiles
Total number of files copied for this snapshot.
int64_t backupId
Backup ID.
std::map< std::string, std::string > options
Optional parameters.
CreateBackupResponse()
Constructs a CreateBackupResponse object with default parameters.