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>())
85 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_):
97 std::map<std::string, std::vector<uint8_t> >
files;
99 std::vector<std::string>
args;
106 template<>
struct codec_traits<gpudb::CreateProcRequest>
112 ::avro::encode(e, v.
files);
114 ::avro::encode(e, v.
args);
120 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
122 const std::vector<size_t> fo = rd->fieldOrder();
124 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
137 ::avro::decode(d, v.
files);
145 ::avro::decode(d, v.
args);
161 ::avro::decode(d, v.
files);
163 ::avro::decode(d, v.
args);
200 template<>
struct codec_traits<gpudb::CreateProcResponse>
209 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
211 const std::vector<size_t> fo = rd->fieldOrder();
213 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
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.