6 #ifndef __RESTORE_BACKUP_H__ 7 #define __RESTORE_BACKUP_H__ 31 options(std::map<std::string, std::string>())
283 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_):
477 template<>
struct codec_traits<
gpudb::RestoreBackupRequest>
489 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
491 const std::vector<size_t> fo = rd->fieldOrder();
493 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
550 info(std::map<std::string, std::string>())
600 std::map<std::string, std::string>
info;
606 template<>
struct codec_traits<
gpudb::RestoreBackupResponse>
618 ::avro::encode(e, v.
info);
623 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
625 const std::vector<size_t> fo = rd->fieldOrder();
627 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
664 ::avro::decode(d, v.
info);
682 ::avro::decode(d, v.
info);
688 #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.