6 #ifndef __CREATE_PROC_H__
7 #define __CREATE_PROC_H__
30 files(std::map<std::string, std::vector<uint8_t> >()),
32 args(std::vector<std::string>()),
33 options(std::map<std::string, std::string>())
95 CreateProcRequest(
const std::string& procName_,
const std::string& executionMode_,
const std::map<std::string, std::vector<uint8_t> >& files_,
const std::string& command_,
const std::vector<std::string>& args_,
const std::map<std::string, std::string>& options_):
107 std::map<std::string, std::vector<uint8_t> >
files;
116 template<>
struct codec_traits<gpudb::CreateProcRequest>
122 ::avro::encode(e, v.
files);
124 ::avro::encode(e, v.
args);
130 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
132 const std::vector<size_t> fo = rd->fieldOrder();
134 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
147 ::avro::decode(d, v.
files);
155 ::avro::decode(d, v.
args);
171 ::avro::decode(d, v.
files);
173 ::avro::decode(d, v.
args);
201 info(std::map<std::string, std::string>())
206 std::map<std::string, std::string>
info;
212 template<>
struct codec_traits<gpudb::CreateProcResponse>
217 ::avro::encode(e, v.
info);
222 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
224 const std::vector<size_t> fo = rd->fieldOrder();
226 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
235 ::avro::decode(d, v.
info);
246 ::avro::decode(d, v.
info);
std::map< std::string, std::vector< uint8_t > > files
CreateProcResponse()
Constructs a CreateProcResponse object with default parameter values.
std::vector< std::string > args
CreateProcRequest()
Constructs a CreateProcRequest object with default parameter values.
std::string executionMode
A set of output parameters for const.
CreateProcRequest(const std::string &procName_, const std::string &executionMode_, const std::map< std::string, std::vector< uint8_t > > &files_, const std::string &command_, const std::vector< std::string > &args_, const std::map< std::string, std::string > &options_)
Constructs a CreateProcRequest object with the specified parameters.
std::map< std::string, std::string > options
A set of input parameters for const.
std::map< std::string, std::string > info