6 #ifndef __CREATE_JOB_H__
7 #define __CREATE_JOB_H__
30 data(std::vector<uint8_t>()),
32 options(std::map<std::string, std::string>())
69 CreateJobRequest(
const std::string& endpoint_,
const std::string& requestEncoding_,
const std::vector<uint8_t>& data_,
const std::string& dataStr_,
const std::map<std::string, std::string>& options_):
82 std::map<std::string, std::string>
options;
88 template<>
struct codec_traits<gpudb::CreateJobRequest>
94 ::avro::encode(e, v.
data);
101 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
103 const std::vector<size_t> fo = rd->fieldOrder();
105 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118 ::avro::decode(d, v.
data);
138 ::avro::decode(d, v.
data);
166 info(std::map<std::string, std::string>())
171 std::map<std::string, std::string>
info;
177 template<>
struct codec_traits<gpudb::CreateJobResponse>
181 ::avro::encode(e, v.
jobId);
182 ::avro::encode(e, v.
info);
187 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
189 const std::vector<size_t> fo = rd->fieldOrder();
191 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
196 ::avro::decode(d, v.
jobId);
200 ::avro::decode(d, v.
info);
210 ::avro::decode(d, v.
jobId);
211 ::avro::decode(d, v.
info);
CreateJobRequest(const std::string &endpoint_, const std::string &requestEncoding_, const std::vector< uint8_t > &data_, const std::string &dataStr_, const std::map< std::string, std::string > &options_)
Constructs a CreateJobRequest object with the specified parameters.
A set of input parameters for const.
CreateJobResponse()
Constructs a CreateJobResponse object with default parameter values.
std::map< std::string, std::string > info
std::string requestEncoding
CreateJobRequest()
Constructs a CreateJobRequest object with default parameter values.
std::map< std::string, std::string > options
std::vector< uint8_t > data
A set of output parameters for const.