6 #ifndef __SHOW_PROC_H__ 7 #define __SHOW_PROC_H__ 24 options(std::map<std::string, std::string>())
58 ShowProcRequest(
const std::string& procName_,
const std::map<std::string, std::string>& options_):
89 std::map<std::string, std::string>
options;
95 template<>
struct codec_traits<
gpudb::ShowProcRequest>
105 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
107 const std::vector<size_t> fo = rd->fieldOrder();
109 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
149 files(std::vector<std::map<std::string, std::vector<uint8_t> > >()),
150 commands(std::vector<std::string>()),
151 args(std::vector<std::vector<std::string> >()),
152 options(std::vector<std::map<std::string, std::string> >()),
153 info(std::map<std::string, std::string>())
177 std::vector<std::map<std::string, std::vector<uint8_t> > >
files;
189 std::vector<std::vector<std::string> >
args;
194 std::vector<std::map<std::string, std::string> >
options;
199 std::map<std::string, std::string>
info;
205 template<>
struct codec_traits<
gpudb::ShowProcResponse>
211 ::avro::encode(e, v.
files);
213 ::avro::encode(e, v.
args);
215 ::avro::encode(e, v.
info);
220 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
222 const std::vector<size_t> fo = rd->fieldOrder();
224 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
237 ::avro::decode(d, v.
files);
245 ::avro::decode(d, v.
args);
253 ::avro::decode(d, v.
info);
265 ::avro::decode(d, v.
files);
267 ::avro::decode(d, v.
args);
269 ::avro::decode(d, v.
info);
275 #endif // __SHOW_PROC_H__ std::vector< std::string > executionModes
The execution modes of the procs named in procNames.
A set of parameters for GPUdb::showProc.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::map< std::string, std::string > > options
The optional parameters for the procs named in procNames.
ShowProcRequest()
Constructs a ShowProcRequest object with default parameters.
std::string procName
Name of the proc to show information about.
std::vector< std::string > procNames
The proc names.
ShowProcRequest(const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a ShowProcRequest object with the specified parameters.
std::vector< std::map< std::string, std::vector< uint8_t > > > files
Maps of the files that make up the procs named in procNames.
std::vector< std::vector< std::string > > args
Arrays of command-line arguments that will be passed to the procs named in procNames when executed.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::showProc.
ShowProcResponse()
Constructs a ShowProcResponse object with default parameters.
std::vector< std::string > commands
The commands (excluding arguments) that will be invoked when the procs named in procNames are execute...