6 #ifndef __ALTER_BACKUP_H__ 7 #define __ALTER_BACKUP_H__ 29 options(std::map<std::string, std::string>())
83 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_):
149 template<>
struct codec_traits<
gpudb::AlterBackupRequest>
154 ::avro::encode(e, v.
action);
155 ::avro::encode(e, v.
value);
162 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
164 const std::vector<size_t> fo = rd->fieldOrder();
166 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
175 ::avro::decode(d, v.
action);
179 ::avro::decode(d, v.
value);
198 ::avro::decode(d, v.
action);
199 ::avro::decode(d, v.
value);
224 info(std::map<std::string, std::string>())
251 std::map<std::string, std::string>
info;
257 template<>
struct codec_traits<
gpudb::AlterBackupResponse>
265 ::avro::encode(e, v.
info);
270 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
272 const std::vector<size_t> fo = rd->fieldOrder();
274 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
295 ::avro::decode(d, v.
info);
309 ::avro::decode(d, v.
info);
315 #endif // __ALTER_BACKUP_H__ std::string value
Action specific argument.
int64_t backupId
Backup ID.
std::string datasinkName
Datasink where backup will be stored.
std::string action
Operation to be applied.
int64_t totalNumberOfRecords
Total number of records affected 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 object 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 alter operation.
std::map< std::string, std::string > info
Additional information.