6 #ifndef __CREATE_PROC_H__ 7 #define __CREATE_PROC_H__ 27 files(std::map<std::string, std::vector<uint8_t> >()),
29 args(std::vector<std::string>()),
30 options(std::map<std::string, std::string>())
116 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_):
167 std::map<std::string, std::vector<uint8_t> >
files;
211 template<>
struct codec_traits<
gpudb::CreateProcRequest>
217 ::avro::encode(e, v.
files);
219 ::avro::encode(e, v.
args);
225 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
227 const std::vector<size_t> fo = rd->fieldOrder();
229 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
242 ::avro::decode(d, v.
files);
250 ::avro::decode(d, v.
args);
266 ::avro::decode(d, v.
files);
268 ::avro::decode(d, v.
args);
288 info(std::map<std::string, std::string>())
300 std::map<std::string, std::string>
info;
306 template<>
struct codec_traits<
gpudb::CreateProcResponse>
311 ::avro::encode(e, v.
info);
316 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
318 const std::vector<size_t> fo = rd->fieldOrder();
320 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
329 ::avro::decode(d, v.
info);
340 ::avro::decode(d, v.
info);
346 #endif // __CREATE_PROC_H__ std::map< std::string, std::vector< uint8_t > > files
A map of the files that make up the proc.
CreateProcResponse()
Constructs a CreateProcResponse object with default parameters.
std::vector< std::string > args
An array of command-line arguments that will be passed to command when the proc is executed.
CreateProcRequest()
Constructs a CreateProcRequest object with default parameters.
std::string executionMode
The execution mode of the proc.
A set of results returned by GPUdb::createProc.
std::string procName
Value of procName.
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
Optional parameters.
A set of parameters for GPUdb::createProc.
std::string procName
Name of the proc to be created.
std::map< std::string, std::string > info
Additional information.
std::string command
The command (excluding arguments) that will be invoked when the proc is executed.