6 #ifndef __RESTORE_BACKUP_H__ 7 #define __RESTORE_BACKUP_H__ 28 options(std::map<std::string, std::string>())
216 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_):
366 template<>
struct codec_traits<
gpudb::RestoreBackupRequest>
378 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
380 const std::vector<size_t> fo = rd->fieldOrder();
382 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
439 info(std::map<std::string, std::string>())
487 std::map<std::string, std::string>
info;
493 template<>
struct codec_traits<
gpudb::RestoreBackupResponse>
505 ::avro::encode(e, v.
info);
510 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
512 const std::vector<size_t> fo = rd->fieldOrder();
514 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
551 ::avro::decode(d, v.
info);
569 ::avro::decode(d, v.
info);
575 #endif // __RESTORE_BACKUP_H__ std::map< std::string, std::string > restoredObjects
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 object, which must refer to a currently existing backup.
int64_t restoredRecords
Total number of records restored from backup.
std::string datasourceName
Datasource where backup is located.
std::map< std::string, std::string > renamedObjects
Original and new names of objects that were successfully restored and their associated types.
int64_t backupId
The backup ID that was restored.
std::map< std::string, std::string > failedObjects
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
The backup name.
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 objects to be restored from the backup.