6 #ifndef __CREATE_BACKUP_H__ 7 #define __CREATE_BACKUP_H__ 33 options(std::map<std::string, std::string>())
252 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_):
426 template<>
struct codec_traits<
gpudb::CreateBackupRequest>
439 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
441 const std::vector<size_t> fo = rd->fieldOrder();
443 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
503 info(std::map<std::string, std::string>())
540 std::map<std::string, std::string>
info;
546 template<>
struct codec_traits<
gpudb::CreateBackupResponse>
556 ::avro::encode(e, v.
info);
561 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
563 const std::vector<size_t> fo = rd->fieldOrder();
565 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
594 ::avro::decode(d, v.
info);
610 ::avro::decode(d, v.
info);
616 #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
Data sink through which the backup will be stored.
std::string backupType
Type of snapshot 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; must be specified when creating a full snapshot and left...
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.
int64_t copiedFiles
Total number of files copied for this snapshot.
int64_t backupId
ID of the snapshot created.
std::map< std::string, std::string > options
Optional parameters.
CreateBackupResponse()
Constructs a CreateBackupResponse object with default parameters.