GPUdb C++ API  Version 7.0.19.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  timings(std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > >()),
156  info(std::map<std::string, std::string>())
157  {
158  }
159 
160  std::map<std::string, std::string> procNames;
161  std::map<std::string, std::map<std::string, std::string> > params;
162  std::map<std::string, std::map<std::string, std::vector<uint8_t> > > binParams;
163  std::map<std::string, std::vector<std::string> > inputTableNames;
164  std::map<std::string, std::map<std::string, std::vector<std::string> > > inputColumnNames;
165  std::map<std::string, std::vector<std::string> > outputTableNames;
166  std::map<std::string, std::map<std::string, std::string> > options;
167  std::map<std::string, std::string> overallStatuses;
168  std::map<std::string, std::map<std::string, std::string> > statuses;
169  std::map<std::string, std::map<std::string, std::string> > messages;
170  std::map<std::string, std::map<std::string, std::map<std::string, std::string> > > results;
171  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > > binResults;
172  std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > > timings;
173  std::map<std::string, std::string> info;
174  };
175 }
176 
177 namespace avro
178 {
179  template<> struct codec_traits<gpudb::ShowProcStatusResponse>
180  {
181  static void encode(Encoder& e, const gpudb::ShowProcStatusResponse& v)
182  {
183  ::avro::encode(e, v.procNames);
184  ::avro::encode(e, v.params);
185  ::avro::encode(e, v.binParams);
186  ::avro::encode(e, v.inputTableNames);
187  ::avro::encode(e, v.inputColumnNames);
188  ::avro::encode(e, v.outputTableNames);
189  ::avro::encode(e, v.options);
190  ::avro::encode(e, v.overallStatuses);
191  ::avro::encode(e, v.statuses);
192  ::avro::encode(e, v.messages);
193  ::avro::encode(e, v.results);
194  ::avro::encode(e, v.binResults);
195  ::avro::encode(e, v.timings);
196  ::avro::encode(e, v.info);
197  }
198 
199  static void decode(Decoder& d, gpudb::ShowProcStatusResponse& v)
200  {
201  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
202  {
203  const std::vector<size_t> fo = rd->fieldOrder();
204 
205  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
206  {
207  switch (*it)
208  {
209  case 0:
210  ::avro::decode(d, v.procNames);
211  break;
212 
213  case 1:
214  ::avro::decode(d, v.params);
215  break;
216 
217  case 2:
218  ::avro::decode(d, v.binParams);
219  break;
220 
221  case 3:
222  ::avro::decode(d, v.inputTableNames);
223  break;
224 
225  case 4:
226  ::avro::decode(d, v.inputColumnNames);
227  break;
228 
229  case 5:
230  ::avro::decode(d, v.outputTableNames);
231  break;
232 
233  case 6:
234  ::avro::decode(d, v.options);
235  break;
236 
237  case 7:
238  ::avro::decode(d, v.overallStatuses);
239  break;
240 
241  case 8:
242  ::avro::decode(d, v.statuses);
243  break;
244 
245  case 9:
246  ::avro::decode(d, v.messages);
247  break;
248 
249  case 10:
250  ::avro::decode(d, v.results);
251  break;
252 
253  case 11:
254  ::avro::decode(d, v.binResults);
255  break;
256 
257  case 12:
258  ::avro::decode(d, v.timings);
259  break;
260 
261  case 13:
262  ::avro::decode(d, v.info);
263  break;
264 
265  default:
266  break;
267  }
268  }
269  }
270  else
271  {
272  ::avro::decode(d, v.procNames);
273  ::avro::decode(d, v.params);
274  ::avro::decode(d, v.binParams);
275  ::avro::decode(d, v.inputTableNames);
276  ::avro::decode(d, v.inputColumnNames);
277  ::avro::decode(d, v.outputTableNames);
278  ::avro::decode(d, v.options);
279  ::avro::decode(d, v.overallStatuses);
280  ::avro::decode(d, v.statuses);
281  ::avro::decode(d, v.messages);
282  ::avro::decode(d, v.results);
283  ::avro::decode(d, v.binResults);
284  ::avro::decode(d, v.timings);
285  ::avro::decode(d, v.info);
286  }
287  }
288  };
289 }
290 
291 #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::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.