6 #ifndef __ADMIN_ALTER_JOBS_H__
7 #define __ADMIN_ALTER_JOBS_H__
31 jobIds(std::vector<int64_t>()),
33 options(std::map<std::string, std::string>())
50 AdminAlterJobsRequest(
const std::vector<int64_t>& jobIds_,
const std::string& action_,
const std::map<std::string, std::string>& options_):
59 std::map<std::string, std::string>
options;
65 template<>
struct codec_traits<gpudb::AdminAlterJobsRequest>
69 ::avro::encode(e, v.
jobIds);
70 ::avro::encode(e, v.
action);
76 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
78 const std::vector<size_t> fo = rd->fieldOrder();
80 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85 ::avro::decode(d, v.
jobIds);
89 ::avro::decode(d, v.
action);
103 ::avro::decode(d, v.
jobIds);
104 ::avro::decode(d, v.
action);
133 jobIds(std::vector<int64_t>()),
135 status(std::vector<std::string>()),
136 info(std::map<std::string, std::string>())
143 std::map<std::string, std::string>
info;
149 template<>
struct codec_traits<gpudb::AdminAlterJobsResponse>
153 ::avro::encode(e, v.
jobIds);
154 ::avro::encode(e, v.
action);
155 ::avro::encode(e, v.
status);
156 ::avro::encode(e, v.
info);
161 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
163 const std::vector<size_t> fo = rd->fieldOrder();
165 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
170 ::avro::decode(d, v.
jobIds);
174 ::avro::decode(d, v.
action);
178 ::avro::decode(d, v.
status);
182 ::avro::decode(d, v.
info);
192 ::avro::decode(d, v.
jobIds);
193 ::avro::decode(d, v.
action);
194 ::avro::decode(d, v.
status);
195 ::avro::decode(d, v.
info);
A set of output parameters for const.
std::map< std::string, std::string > info
std::vector< int64_t > jobIds
AdminAlterJobsRequest(const std::vector< int64_t > &jobIds_, const std::string &action_, const std::map< std::string, std::string > &options_)
Constructs an AdminAlterJobsRequest object with the specified parameters.
std::map< std::string, std::string > options
std::vector< int64_t > jobIds
std::vector< std::string > status
A set of input parameters for const.
AdminAlterJobsRequest()
Constructs an AdminAlterJobsRequest object with default parameter values.
AdminAlterJobsResponse()
Constructs an AdminAlterJobsResponse object with default parameter values.