6 #ifndef __SHOW_PROC_H__
7 #define __SHOW_PROC_H__
26 options(std::map<std::string, std::string>())
51 ShowProcRequest(
const std::string& procName_,
const std::map<std::string, std::string>& options_):
58 std::map<std::string, std::string>
options;
64 template<>
struct codec_traits<gpudb::ShowProcRequest>
74 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76 const std::vector<size_t> fo = rd->fieldOrder();
78 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
122 files(std::vector<std::map<std::string, std::vector<uint8_t> > >()),
123 commands(std::vector<std::string>()),
124 args(std::vector<std::vector<std::string> >()),
125 options(std::vector<std::map<std::string, std::string> >()),
126 info(std::map<std::string, std::string>())
132 std::vector<std::map<std::string, std::vector<uint8_t> > >
files;
134 std::vector<std::vector<std::string> >
args;
135 std::vector<std::map<std::string, std::string> >
options;
136 std::map<std::string, std::string>
info;
142 template<>
struct codec_traits<gpudb::ShowProcResponse>
148 ::avro::encode(e, v.
files);
150 ::avro::encode(e, v.
args);
152 ::avro::encode(e, v.
info);
157 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159 const std::vector<size_t> fo = rd->fieldOrder();
161 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
174 ::avro::decode(d, v.
files);
182 ::avro::decode(d, v.
args);
190 ::avro::decode(d, v.
info);
202 ::avro::decode(d, v.
files);
204 ::avro::decode(d, v.
args);
206 ::avro::decode(d, v.
info);
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
std::map< std::string, std::string > info
A set of output parameters for const.
ShowProcResponse()
Constructs a ShowProcResponse object with default parameter values.
std::vector< std::string > commands