6 #ifndef __ALTER_BACKUP_H__ 7 #define __ALTER_BACKUP_H__ 32 options(std::map<std::string, std::string>())
96 AlterBackupRequest(
const std::string& backupName_,
const std::string& action_,
const std::string& value_,
const std::string& datasinkName_,
const std::map<std::string, std::string>& options_):
168 template<>
struct codec_traits<
gpudb::AlterBackupRequest>
173 ::avro::encode(e, v.
action);
174 ::avro::encode(e, v.
value);
181 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
183 const std::vector<size_t> fo = rd->fieldOrder();
185 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
194 ::avro::decode(d, v.
action);
198 ::avro::decode(d, v.
value);
217 ::avro::decode(d, v.
action);
218 ::avro::decode(d, v.
value);
243 info(std::map<std::string, std::string>())
270 std::map<std::string, std::string>
info;
276 template<>
struct codec_traits<
gpudb::AlterBackupResponse>
284 ::avro::encode(e, v.
info);
289 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
291 const std::vector<size_t> fo = rd->fieldOrder();
293 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
314 ::avro::decode(d, v.
info);
328 ::avro::decode(d, v.
info);
334 #endif // __ALTER_BACKUP_H__ std::string value
Value of the modification, depending on action.
int64_t backupId
ID of the snapshot affected by the alter operation, if any.
std::string datasinkName
Data sink through which the backup is accessible.
std::string action
Operation to be applied.
int64_t totalNumberOfRecords
Total number of records affected by the alter operation.
AlterBackupRequest(const std::string &backupName_, const std::string &action_, const std::string &value_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
Constructs an AlterBackupRequest object with the specified parameters.
A set of results returned by GPUdb::alterBackup.
AlterBackupResponse()
Constructs an AlterBackupResponse object with default parameters.
A set of parameters for GPUdb::alterBackup.
std::string backupName
Name of the backup to be altered.
std::map< std::string, std::string > options
Optional parameters.
std::string backupName
Value of backupName.
AlterBackupRequest()
Constructs an AlterBackupRequest object with default parameters.
int64_t totalBytes
Total size of files affected by the alter operation.
std::map< std::string, std::string > info
Additional information.