GPUdb C++ API  Version 7.2.2.4
show_proc.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_PROC_H__
7 #define __SHOW_PROC_H__
8 
9 namespace gpudb
10 {
18  {
23  procName(std::string()),
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
58  ShowProcRequest(const std::string& procName_, const std::map<std::string, std::string>& options_):
59  procName( procName_ ),
60  options( options_ )
61  {
62  }
63 
69  std::string procName;
70 
89  std::map<std::string, std::string> options;
90  };
91 } // end namespace gpudb
92 
93 namespace avro
94 {
95  template<> struct codec_traits<gpudb::ShowProcRequest>
96  {
97  static void encode(Encoder& e, const gpudb::ShowProcRequest& v)
98  {
99  ::avro::encode(e, v.procName);
100  ::avro::encode(e, v.options);
101  }
102 
103  static void decode(Decoder& d, gpudb::ShowProcRequest& v)
104  {
105  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
106  {
107  const std::vector<size_t> fo = rd->fieldOrder();
108 
109  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
110  {
111  switch (*it)
112  {
113  case 0:
114  ::avro::decode(d, v.procName);
115  break;
116 
117  case 1:
118  ::avro::decode(d, v.options);
119  break;
120 
121  default:
122  break;
123  }
124  }
125  }
126  else
127  {
128  ::avro::decode(d, v.procName);
129  ::avro::decode(d, v.options);
130  }
131  }
132  };
133 } // end namespace avro
134 
135 namespace gpudb
136 {
142  {
147  procNames(std::vector<std::string>()),
148  executionModes(std::vector<std::string>()),
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>())
154  {
155  }
156 
160  std::vector<std::string> procNames;
161 
172  std::vector<std::string> executionModes;
173 
177  std::vector<std::map<std::string, std::vector<uint8_t> > > files;
178 
183  std::vector<std::string> commands;
184 
189  std::vector<std::vector<std::string> > args;
190 
194  std::vector<std::map<std::string, std::string> > options;
195 
199  std::map<std::string, std::string> info;
200  };
201 } // end namespace gpudb
202 
203 namespace avro
204 {
205  template<> struct codec_traits<gpudb::ShowProcResponse>
206  {
207  static void encode(Encoder& e, const gpudb::ShowProcResponse& v)
208  {
209  ::avro::encode(e, v.procNames);
210  ::avro::encode(e, v.executionModes);
211  ::avro::encode(e, v.files);
212  ::avro::encode(e, v.commands);
213  ::avro::encode(e, v.args);
214  ::avro::encode(e, v.options);
215  ::avro::encode(e, v.info);
216  }
217 
218  static void decode(Decoder& d, gpudb::ShowProcResponse& v)
219  {
220  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
221  {
222  const std::vector<size_t> fo = rd->fieldOrder();
223 
224  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
225  {
226  switch (*it)
227  {
228  case 0:
229  ::avro::decode(d, v.procNames);
230  break;
231 
232  case 1:
233  ::avro::decode(d, v.executionModes);
234  break;
235 
236  case 2:
237  ::avro::decode(d, v.files);
238  break;
239 
240  case 3:
241  ::avro::decode(d, v.commands);
242  break;
243 
244  case 4:
245  ::avro::decode(d, v.args);
246  break;
247 
248  case 5:
249  ::avro::decode(d, v.options);
250  break;
251 
252  case 6:
253  ::avro::decode(d, v.info);
254  break;
255 
256  default:
257  break;
258  }
259  }
260  }
261  else
262  {
263  ::avro::decode(d, v.procNames);
264  ::avro::decode(d, v.executionModes);
265  ::avro::decode(d, v.files);
266  ::avro::decode(d, v.commands);
267  ::avro::decode(d, v.args);
268  ::avro::decode(d, v.options);
269  ::avro::decode(d, v.info);
270  }
271  }
272  };
273 } // end namespace avro
274 
275 #endif // __SHOW_PROC_H__
std::vector< std::string > executionModes
The execution modes of the procs named in procNames.
Definition: show_proc.h:172
A set of parameters for GPUdb::showProc.
Definition: show_proc.h:17
std::map< std::string, std::string > options
Optional parameters.
Definition: show_proc.h:89
std::vector< std::map< std::string, std::string > > options
The optional parameters for the procs named in procNames.
Definition: show_proc.h:194
ShowProcRequest()
Constructs a ShowProcRequest object with default parameters.
Definition: show_proc.h:22
std::string procName
Name of the proc to show information about.
Definition: show_proc.h:69
std::vector< std::string > procNames
The proc names.
Definition: show_proc.h:160
ShowProcRequest(const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a ShowProcRequest object with the specified parameters.
Definition: show_proc.h:58
std::vector< std::map< std::string, std::vector< uint8_t > > > files
Maps of the files that make up the procs named in procNames.
Definition: show_proc.h:177
std::vector< std::vector< std::string > > args
Arrays of command-line arguments that will be passed to the procs named in procNames when executed.
Definition: show_proc.h:189
std::map< std::string, std::string > info
Additional information.
Definition: show_proc.h:199
A set of results returned by GPUdb::showProc.
Definition: show_proc.h:141
ShowProcResponse()
Constructs a ShowProcResponse object with default parameters.
Definition: show_proc.h:146
std::vector< std::string > commands
The commands (excluding arguments) that will be invoked when the procs named in procNames are execute...
Definition: show_proc.h:183