GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_proc_status.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_PROC_STATUS_H__
7 #define __SHOW_PROC_STATUS_H__
8 
9 namespace gpudb
10 {
11 
23  {
24 
30  runId(std::string()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
69  ShowProcStatusRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
70  runId( runId_ ),
71  options( options_ )
72  {
73  }
74 
75  std::string runId;
76  std::map<std::string, std::string> options;
77  };
78 }
79 
80 namespace avro
81 {
82  template<> struct codec_traits<gpudb::ShowProcStatusRequest>
83  {
84  static void encode(Encoder& e, const gpudb::ShowProcStatusRequest& v)
85  {
86  ::avro::encode(e, v.runId);
87  ::avro::encode(e, v.options);
88  }
89 
90  static void decode(Decoder& d, gpudb::ShowProcStatusRequest& v)
91  {
92  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
93  {
94  const std::vector<size_t> fo = rd->fieldOrder();
95 
96  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
97  {
98  switch (*it)
99  {
100  case 0:
101  ::avro::decode(d, v.runId);
102  break;
103 
104  case 1:
105  ::avro::decode(d, v.options);
106  break;
107 
108  default:
109  break;
110  }
111  }
112  }
113  else
114  {
115  ::avro::decode(d, v.runId);
116  ::avro::decode(d, v.options);
117  }
118  }
119  };
120 }
121 
122 namespace gpudb
123 {
124 
136  {
137 
143  procNames(std::map<std::string, std::string>()),
144  params(std::map<std::string, std::map<std::string, std::string> >()),
145  binParams(std::map<std::string, std::map<std::string, std::vector<uint8_t> > >()),
146  inputTableNames(std::map<std::string, std::vector<std::string> >()),
147  inputColumnNames(std::map<std::string, std::map<std::string, std::vector<std::string> > >()),
148  outputTableNames(std::map<std::string, std::vector<std::string> >()),
149  options(std::map<std::string, std::map<std::string, std::string> >()),
150  overallStatuses(std::map<std::string, std::string>()),
151  statuses(std::map<std::string, std::map<std::string, std::string> >()),
152  messages(std::map<std::string, std::map<std::string, std::string> >()),
153  results(std::map<std::string, std::map<std::string, std::map<std::string, std::string> > >()),
154  binResults(std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > >()),
155  output(std::map<std::string, std::map<std::string, std::map<std::string, std::vector<std::string> > > >()),
156  timings(std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > >()),
157  info(std::map<std::string, std::string>())
158  {
159  }
160 
161  std::map<std::string, std::string> procNames;
162  std::map<std::string, std::map<std::string, std::string> > params;
163  std::map<std::string, std::map<std::string, std::vector<uint8_t> > > binParams;
164  std::map<std::string, std::vector<std::string> > inputTableNames;
165  std::map<std::string, std::map<std::string, std::vector<std::string> > > inputColumnNames;
166  std::map<std::string, std::vector<std::string> > outputTableNames;
167  std::map<std::string, std::map<std::string, std::string> > options;
168  std::map<std::string, std::string> overallStatuses;
169  std::map<std::string, std::map<std::string, std::string> > statuses;
170  std::map<std::string, std::map<std::string, std::string> > messages;
171  std::map<std::string, std::map<std::string, std::map<std::string, std::string> > > results;
172  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > > binResults;
173  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<std::string> > > > output;
174  std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > > timings;
175  std::map<std::string, std::string> info;
176  };
177 }
178 
179 namespace avro
180 {
181  template<> struct codec_traits<gpudb::ShowProcStatusResponse>
182  {
183  static void encode(Encoder& e, const gpudb::ShowProcStatusResponse& v)
184  {
185  ::avro::encode(e, v.procNames);
186  ::avro::encode(e, v.params);
187  ::avro::encode(e, v.binParams);
188  ::avro::encode(e, v.inputTableNames);
189  ::avro::encode(e, v.inputColumnNames);
190  ::avro::encode(e, v.outputTableNames);
191  ::avro::encode(e, v.options);
192  ::avro::encode(e, v.overallStatuses);
193  ::avro::encode(e, v.statuses);
194  ::avro::encode(e, v.messages);
195  ::avro::encode(e, v.results);
196  ::avro::encode(e, v.binResults);
197  ::avro::encode(e, v.output);
198  ::avro::encode(e, v.timings);
199  ::avro::encode(e, v.info);
200  }
201 
202  static void decode(Decoder& d, gpudb::ShowProcStatusResponse& v)
203  {
204  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
205  {
206  const std::vector<size_t> fo = rd->fieldOrder();
207 
208  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
209  {
210  switch (*it)
211  {
212  case 0:
213  ::avro::decode(d, v.procNames);
214  break;
215 
216  case 1:
217  ::avro::decode(d, v.params);
218  break;
219 
220  case 2:
221  ::avro::decode(d, v.binParams);
222  break;
223 
224  case 3:
225  ::avro::decode(d, v.inputTableNames);
226  break;
227 
228  case 4:
229  ::avro::decode(d, v.inputColumnNames);
230  break;
231 
232  case 5:
233  ::avro::decode(d, v.outputTableNames);
234  break;
235 
236  case 6:
237  ::avro::decode(d, v.options);
238  break;
239 
240  case 7:
241  ::avro::decode(d, v.overallStatuses);
242  break;
243 
244  case 8:
245  ::avro::decode(d, v.statuses);
246  break;
247 
248  case 9:
249  ::avro::decode(d, v.messages);
250  break;
251 
252  case 10:
253  ::avro::decode(d, v.results);
254  break;
255 
256  case 11:
257  ::avro::decode(d, v.binResults);
258  break;
259 
260  case 12:
261  ::avro::decode(d, v.output);
262  break;
263 
264  case 13:
265  ::avro::decode(d, v.timings);
266  break;
267 
268  case 14:
269  ::avro::decode(d, v.info);
270  break;
271 
272  default:
273  break;
274  }
275  }
276  }
277  else
278  {
279  ::avro::decode(d, v.procNames);
280  ::avro::decode(d, v.params);
281  ::avro::decode(d, v.binParams);
282  ::avro::decode(d, v.inputTableNames);
283  ::avro::decode(d, v.inputColumnNames);
284  ::avro::decode(d, v.outputTableNames);
285  ::avro::decode(d, v.options);
286  ::avro::decode(d, v.overallStatuses);
287  ::avro::decode(d, v.statuses);
288  ::avro::decode(d, v.messages);
289  ::avro::decode(d, v.results);
290  ::avro::decode(d, v.binResults);
291  ::avro::decode(d, v.output);
292  ::avro::decode(d, v.timings);
293  ::avro::decode(d, v.info);
294  }
295  }
296  };
297 }
298 
299 #endif
std::map< std::string, std::map< std::string, std::string > > statuses
A set of output parameters for const.
std::map< std::string, std::map< std::string, std::map< std::string, std::vector< uint8_t > > > > binResults
ShowProcStatusRequest(const std::string &runId_, const std::map< std::string, std::string > &options_)
Constructs a ShowProcStatusRequest object with the specified parameters.
std::map< std::string, std::map< std::string, std::string > > params
std::map< std::string, std::map< std::string, std::map< std::string, std::vector< std::string > > > > output
std::map< std::string, std::map< std::string, std::map< std::string, std::string > > > results
std::map< std::string, std::vector< std::string > > inputTableNames
std::map< std::string, std::string > procNames
std::map< std::string, std::map< std::string, std::string > > options
std::map< std::string, std::map< std::string, std::string > > messages
ShowProcStatusRequest()
Constructs a ShowProcStatusRequest object with default parameter values.
std::map< std::string, std::string > options
A set of input parameters for const.
std::map< std::string, std::map< std::string, std::vector< std::string > > > inputColumnNames
std::map< std::string, std::string > overallStatuses
std::map< std::string, std::map< std::string, std::vector< uint8_t > > > binParams
std::map< std::string, std::string > info
std::map< std::string, std::vector< std::string > > outputTableNames
std::map< std::string, std::map< std::string, std::map< std::string, int64_t > > > timings
ShowProcStatusResponse()
Constructs a ShowProcStatusResponse object with default parameter values.