GPUdb C++ API  Version 7.2.2.4
show_proc_status.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_STATUS_H__
7 #define __SHOW_PROC_STATUS_H__
8 
9 namespace gpudb
10 {
23  {
28  runId(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
83  ShowProcStatusRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
84  runId( runId_ ),
85  options( options_ )
86  {
87  }
88 
95  std::string runId;
96 
128  std::map<std::string, std::string> options;
129  };
130 } // end namespace gpudb
131 
132 namespace avro
133 {
134  template<> struct codec_traits<gpudb::ShowProcStatusRequest>
135  {
136  static void encode(Encoder& e, const gpudb::ShowProcStatusRequest& v)
137  {
138  ::avro::encode(e, v.runId);
139  ::avro::encode(e, v.options);
140  }
141 
142  static void decode(Decoder& d, gpudb::ShowProcStatusRequest& v)
143  {
144  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
145  {
146  const std::vector<size_t> fo = rd->fieldOrder();
147 
148  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
149  {
150  switch (*it)
151  {
152  case 0:
153  ::avro::decode(d, v.runId);
154  break;
155 
156  case 1:
157  ::avro::decode(d, v.options);
158  break;
159 
160  default:
161  break;
162  }
163  }
164  }
165  else
166  {
167  ::avro::decode(d, v.runId);
168  ::avro::decode(d, v.options);
169  }
170  }
171  };
172 } // end namespace avro
173 
174 namespace gpudb
175 {
182  {
187  procNames(std::map<std::string, std::string>()),
188  params(std::map<std::string, std::map<std::string, std::string> >()),
189  binParams(std::map<std::string, std::map<std::string, std::vector<uint8_t> > >()),
190  inputTableNames(std::map<std::string, std::vector<std::string> >()),
191  inputColumnNames(std::map<std::string, std::map<std::string, std::vector<std::string> > >()),
192  outputTableNames(std::map<std::string, std::vector<std::string> >()),
193  options(std::map<std::string, std::map<std::string, std::string> >()),
194  overallStatuses(std::map<std::string, std::string>()),
195  statuses(std::map<std::string, std::map<std::string, std::string> >()),
196  messages(std::map<std::string, std::map<std::string, std::string> >()),
197  results(std::map<std::string, std::map<std::string, std::map<std::string, std::string> > >()),
198  binResults(std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > >()),
199  output(std::map<std::string, std::map<std::string, std::map<std::string, std::vector<std::string> > > >()),
200  timings(std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > >()),
201  info(std::map<std::string, std::string>())
202  {
203  }
204 
208  std::map<std::string, std::string> procNames;
209 
215  std::map<std::string, std::map<std::string, std::string> > params;
216 
222  std::map<std::string, std::map<std::string, std::vector<uint8_t> > > binParams;
223 
229  std::map<std::string, std::vector<std::string> > inputTableNames;
230 
238  std::map<std::string, std::map<std::string, std::vector<std::string> > > inputColumnNames;
239 
245  std::map<std::string, std::vector<std::string> > outputTableNames;
246 
252  std::map<std::string, std::map<std::string, std::string> > options;
253 
277  std::map<std::string, std::string> overallStatuses;
278 
299  std::map<std::string, std::map<std::string, std::string> > statuses;
300 
305  std::map<std::string, std::map<std::string, std::string> > messages;
306 
310  std::map<std::string, std::map<std::string, std::map<std::string, std::string> > > results;
311 
315  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > > binResults;
316 
326  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<std::string> > > > output;
327 
332  std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > > timings;
333 
337  std::map<std::string, std::string> info;
338  };
339 } // end namespace gpudb
340 
341 namespace avro
342 {
343  template<> struct codec_traits<gpudb::ShowProcStatusResponse>
344  {
345  static void encode(Encoder& e, const gpudb::ShowProcStatusResponse& v)
346  {
347  ::avro::encode(e, v.procNames);
348  ::avro::encode(e, v.params);
349  ::avro::encode(e, v.binParams);
350  ::avro::encode(e, v.inputTableNames);
351  ::avro::encode(e, v.inputColumnNames);
352  ::avro::encode(e, v.outputTableNames);
353  ::avro::encode(e, v.options);
354  ::avro::encode(e, v.overallStatuses);
355  ::avro::encode(e, v.statuses);
356  ::avro::encode(e, v.messages);
357  ::avro::encode(e, v.results);
358  ::avro::encode(e, v.binResults);
359  ::avro::encode(e, v.output);
360  ::avro::encode(e, v.timings);
361  ::avro::encode(e, v.info);
362  }
363 
364  static void decode(Decoder& d, gpudb::ShowProcStatusResponse& v)
365  {
366  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
367  {
368  const std::vector<size_t> fo = rd->fieldOrder();
369 
370  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
371  {
372  switch (*it)
373  {
374  case 0:
375  ::avro::decode(d, v.procNames);
376  break;
377 
378  case 1:
379  ::avro::decode(d, v.params);
380  break;
381 
382  case 2:
383  ::avro::decode(d, v.binParams);
384  break;
385 
386  case 3:
387  ::avro::decode(d, v.inputTableNames);
388  break;
389 
390  case 4:
391  ::avro::decode(d, v.inputColumnNames);
392  break;
393 
394  case 5:
395  ::avro::decode(d, v.outputTableNames);
396  break;
397 
398  case 6:
399  ::avro::decode(d, v.options);
400  break;
401 
402  case 7:
403  ::avro::decode(d, v.overallStatuses);
404  break;
405 
406  case 8:
407  ::avro::decode(d, v.statuses);
408  break;
409 
410  case 9:
411  ::avro::decode(d, v.messages);
412  break;
413 
414  case 10:
415  ::avro::decode(d, v.results);
416  break;
417 
418  case 11:
419  ::avro::decode(d, v.binResults);
420  break;
421 
422  case 12:
423  ::avro::decode(d, v.output);
424  break;
425 
426  case 13:
427  ::avro::decode(d, v.timings);
428  break;
429 
430  case 14:
431  ::avro::decode(d, v.info);
432  break;
433 
434  default:
435  break;
436  }
437  }
438  }
439  else
440  {
441  ::avro::decode(d, v.procNames);
442  ::avro::decode(d, v.params);
443  ::avro::decode(d, v.binParams);
444  ::avro::decode(d, v.inputTableNames);
445  ::avro::decode(d, v.inputColumnNames);
446  ::avro::decode(d, v.outputTableNames);
447  ::avro::decode(d, v.options);
448  ::avro::decode(d, v.overallStatuses);
449  ::avro::decode(d, v.statuses);
450  ::avro::decode(d, v.messages);
451  ::avro::decode(d, v.results);
452  ::avro::decode(d, v.binResults);
453  ::avro::decode(d, v.output);
454  ::avro::decode(d, v.timings);
455  ::avro::decode(d, v.info);
456  }
457  }
458  };
459 } // end namespace avro
460 
461 #endif // __SHOW_PROC_STATUS_H__
std::map< std::string, std::map< std::string, std::string > > statuses
Statuses for the returned run IDs, grouped by data segment ID.
A set of results returned by GPUdb::showProcStatus.
std::map< std::string, std::map< std::string, std::map< std::string, std::vector< uint8_t > > > > binResults
Binary results for the returned run IDs, grouped by data segment ID.
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
The string params passed to GPUdb::executeProc for the returned run IDs.
std::map< std::string, std::map< std::string, std::map< std::string, std::vector< std::string > > > > output
Output lines for the returned run IDs, grouped by data segment ID.
std::map< std::string, std::map< std::string, std::map< std::string, std::string > > > results
String results for the returned run IDs, grouped by data segment ID.
std::string runId
The run ID of a specific proc instance for which the status will be returned.
std::map< std::string, std::vector< std::string > > inputTableNames
The input table names passed to GPUdb::executeProc for the returned run IDs.
std::map< std::string, std::string > procNames
The proc names corresponding to the returned run IDs.
std::map< std::string, std::map< std::string, std::string > > options
The optional parameters passed to GPUdb::executeProc for the returned run IDs.
std::map< std::string, std::map< std::string, std::string > > messages
Messages containing additional status information for the returned run IDs, grouped by data segment I...
ShowProcStatusRequest()
Constructs a ShowProcStatusRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::showProcStatus.
std::map< std::string, std::map< std::string, std::vector< std::string > > > inputColumnNames
The input column names passed to GPUdb::executeProc for the returned run IDs, supplemented with the c...
std::map< std::string, std::string > overallStatuses
Overall statuses for the returned run IDs.
std::map< std::string, std::map< std::string, std::vector< uint8_t > > > binParams
The binary params passed to GPUdb::executeProc for the returned run IDs.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::vector< std::string > > outputTableNames
The output table names passed to GPUdb::executeProc for the returned run IDs.
std::map< std::string, std::map< std::string, std::map< std::string, int64_t > > > timings
Timing information for the returned run IDs, grouped by data segment ID.
ShowProcStatusResponse()
Constructs a ShowProcStatusResponse object with default parameters.