6 #ifndef __EXECUTE_PROC_H__ 7 #define __EXECUTE_PROC_H__ 33 params(std::map<std::string, std::string>()),
34 binParams(std::map<std::string, std::vector<uint8_t> >()),
38 options(std::map<std::string, std::string>())
201 ExecuteProcRequest(
const std::string& procName_,
const std::map<std::string, std::string>& params_,
const std::map<std::string, std::vector<uint8_t> >& binParams_,
const std::vector<std::string>& inputTableNames_,
const std::map<std::string, std::vector<std::string> >& inputColumnNames_,
const std::vector<std::string>& outputTableNames_,
const std::map<std::string, std::string>& options_):
223 std::map<std::string, std::string>
params;
351 template<>
struct codec_traits<
gpudb::ExecuteProcRequest>
356 ::avro::encode(e, v.
params);
366 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
368 const std::vector<size_t> fo = rd->fieldOrder();
370 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
379 ::avro::decode(d, v.
params);
410 ::avro::decode(d, v.
params);
434 runId(std::string()),
435 info(std::map<std::string, std::string>())
451 std::map<std::string, std::string>
info;
457 template<>
struct codec_traits<
gpudb::ExecuteProcResponse>
461 ::avro::encode(e, v.
runId);
462 ::avro::encode(e, v.
info);
467 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
469 const std::vector<size_t> fo = rd->fieldOrder();
471 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
476 ::avro::decode(d, v.
runId);
480 ::avro::decode(d, v.
info);
490 ::avro::decode(d, v.
runId);
491 ::avro::decode(d, v.
info);
497 #endif // __EXECUTE_PROC_H__ ExecuteProcRequest()
Constructs an ExecuteProcRequest object with default parameters.
std::map< std::string, std::string > params
A map containing named parameters to pass to the proc.
A set of parameters for GPUdb::executeProc.
std::vector< std::string > outputTableNames
Names of the tables to which output data from the proc will be written, each in [ schema_name....
std::string runId
The run ID of the running proc instance.
std::map< std::string, std::vector< uint8_t > > binParams
A map containing named binary parameters to pass to the proc.
std::string procName
Name of the proc to execute.
std::map< std::string, std::vector< std::string > > inputColumnNames
Map of table names from inputTableNames to lists of names of columns from those tables that will be p...
A set of results returned by GPUdb::executeProc.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > inputTableNames
Names of the tables containing data to be passed to the proc.
ExecuteProcRequest(const std::string &procName_, const std::map< std::string, std::string > ¶ms_, const std::map< std::string, std::vector< uint8_t > > &binParams_, const std::vector< std::string > &inputTableNames_, const std::map< std::string, std::vector< std::string > > &inputColumnNames_, const std::vector< std::string > &outputTableNames_, const std::map< std::string, std::string > &options_)
Constructs an ExecuteProcRequest object with the specified parameters.
ExecuteProcResponse()
Constructs an ExecuteProcResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.