6 #ifndef __RESTORE_BACKUP_H__ 7 #define __RESTORE_BACKUP_H__ 31 options(std::map<std::string, std::string>())
289 RestoreBackupRequest(
const std::string& backupName_,
const std::map<std::string, std::string>& restoreObjectsMap_,
const std::string& datasourceName_,
const std::map<std::string, std::string>& options_):
484 template<>
struct codec_traits<
gpudb::RestoreBackupRequest>
496 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
498 const std::vector<size_t> fo = rd->fieldOrder();
500 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
557 info(std::map<std::string, std::string>())
607 std::map<std::string, std::string>
info;
613 template<>
struct codec_traits<
gpudb::RestoreBackupResponse>
625 ::avro::encode(e, v.
info);
630 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
632 const std::vector<size_t> fo = rd->fieldOrder();
634 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
671 ::avro::decode(d, v.
info);
689 ::avro::decode(d, v.
info);
695 #endif // __RESTORE_BACKUP_H__ std::map< std::string, std::string > restoredObjects
Database objects that were successfully restored and their associated types.
A set of results returned by GPUdb::restoreBackup.
int64_t restoredFiles
Total number of files restored from backup.
A set of parameters for GPUdb::restoreBackup.
std::string backupName
Name of the backup to restore from, which must refer to an existing backup.
int64_t restoredRecords
Total number of records restored from backup.
std::string datasourceName
Data source through which the backup will be restored.
std::map< std::string, std::string > renamedObjects
Original and new names of database objects that were successfully restored and their associated types...
int64_t backupId
ID of the snapshot that was restored.
std::map< std::string, std::string > failedObjects
Database objects that failed to be restored and their associated types.
RestoreBackupRequest(const std::string &backupName_, const std::map< std::string, std::string > &restoreObjectsMap_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a RestoreBackupRequest object with the specified parameters.
RestoreBackupResponse()
Constructs a RestoreBackupResponse object with default parameters.
int64_t restoredBytes
Total size of data restored from backup.
std::map< std::string, std::string > info
Additional information.
std::string backupName
Value of backupName.
std::map< std::string, std::string > options
Optional parameters.
RestoreBackupRequest()
Constructs a RestoreBackupRequest object with default parameters.
std::map< std::string, std::string > restoreObjectsMap
Map of database objects to be restored from the backup.