6 #ifndef __SHOW_PROC_H__
7 #define __SHOW_PROC_H__
26 options(std::map<std::string, std::string>())
50 ShowProcRequest(
const std::string& procName_,
const std::map<std::string, std::string>& options_):
57 std::map<std::string, std::string>
options;
63 template<>
struct codec_traits<gpudb::ShowProcRequest>
73 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
75 const std::vector<size_t> fo = rd->fieldOrder();
77 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
121 files(std::vector<std::map<std::string, std::vector<uint8_t> > >()),
122 commands(std::vector<std::string>()),
123 args(std::vector<std::vector<std::string> >()),
124 options(std::vector<std::map<std::string, std::string> >())
130 std::vector<std::map<std::string, std::vector<uint8_t> > >
files;
132 std::vector<std::vector<std::string> >
args;
133 std::vector<std::map<std::string, std::string> >
options;
139 template<>
struct codec_traits<gpudb::ShowProcResponse>
145 ::avro::encode(e, v.
files);
147 ::avro::encode(e, v.
args);
153 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155 const std::vector<size_t> fo = rd->fieldOrder();
157 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
170 ::avro::decode(d, v.
files);
178 ::avro::decode(d, v.
args);
194 ::avro::decode(d, v.
files);
196 ::avro::decode(d, v.
args);
std::vector< std::string > executionModes
A set of input parameters for const.
std::map< std::string, std::string > options
std::vector< std::map< std::string, std::string > > options
ShowProcRequest()
Constructs a ShowProcRequest object with default parameter values.
std::vector< std::string > procNames
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
std::vector< std::vector< std::string > > args
A set of output parameters for const.
ShowProcResponse()
Constructs a ShowProcResponse object with default parameter values.
std::vector< std::string > commands