GPUdb C++ API  Version 6.2.0.3
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 
62  ShowProcStatusRequest(const std::string& runId_, const std::map<std::string, std::string>& options_):
63  runId( runId_ ),
64  options( options_ )
65  {
66  }
67 
68  std::string runId;
69  std::map<std::string, std::string> options;
70  };
71 }
72 
73 namespace avro
74 {
75  template<> struct codec_traits<gpudb::ShowProcStatusRequest>
76  {
77  static void encode(Encoder& e, const gpudb::ShowProcStatusRequest& v)
78  {
79  ::avro::encode(e, v.runId);
80  ::avro::encode(e, v.options);
81  }
82 
83  static void decode(Decoder& d, gpudb::ShowProcStatusRequest& v)
84  {
85  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
86  {
87  const std::vector<size_t> fo = rd->fieldOrder();
88 
89  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
90  {
91  switch (*it)
92  {
93  case 0:
94  ::avro::decode(d, v.runId);
95  break;
96 
97  case 1:
98  ::avro::decode(d, v.options);
99  break;
100 
101  default:
102  break;
103  }
104  }
105  }
106  else
107  {
108  ::avro::decode(d, v.runId);
109  ::avro::decode(d, v.options);
110  }
111  }
112  };
113 }
114 
115 namespace gpudb
116 {
117 
129  {
130 
136  procNames(std::map<std::string, std::string>()),
137  params(std::map<std::string, std::map<std::string, std::string> >()),
138  binParams(std::map<std::string, std::map<std::string, std::vector<uint8_t> > >()),
139  inputTableNames(std::map<std::string, std::vector<std::string> >()),
140  inputColumnNames(std::map<std::string, std::map<std::string, std::vector<std::string> > >()),
141  outputTableNames(std::map<std::string, std::vector<std::string> >()),
142  options(std::map<std::string, std::map<std::string, std::string> >()),
143  overallStatuses(std::map<std::string, std::string>()),
144  statuses(std::map<std::string, std::map<std::string, std::string> >()),
145  messages(std::map<std::string, std::map<std::string, std::string> >()),
146  results(std::map<std::string, std::map<std::string, std::map<std::string, std::string> > >()),
147  binResults(std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > >()),
148  timings(std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > >())
149  {
150  }
151 
152  std::map<std::string, std::string> procNames;
153  std::map<std::string, std::map<std::string, std::string> > params;
154  std::map<std::string, std::map<std::string, std::vector<uint8_t> > > binParams;
155  std::map<std::string, std::vector<std::string> > inputTableNames;
156  std::map<std::string, std::map<std::string, std::vector<std::string> > > inputColumnNames;
157  std::map<std::string, std::vector<std::string> > outputTableNames;
158  std::map<std::string, std::map<std::string, std::string> > options;
159  std::map<std::string, std::string> overallStatuses;
160  std::map<std::string, std::map<std::string, std::string> > statuses;
161  std::map<std::string, std::map<std::string, std::string> > messages;
162  std::map<std::string, std::map<std::string, std::map<std::string, std::string> > > results;
163  std::map<std::string, std::map<std::string, std::map<std::string, std::vector<uint8_t> > > > binResults;
164  std::map<std::string, std::map<std::string, std::map<std::string, int64_t> > > timings;
165  };
166 }
167 
168 namespace avro
169 {
170  template<> struct codec_traits<gpudb::ShowProcStatusResponse>
171  {
172  static void encode(Encoder& e, const gpudb::ShowProcStatusResponse& v)
173  {
174  ::avro::encode(e, v.procNames);
175  ::avro::encode(e, v.params);
176  ::avro::encode(e, v.binParams);
177  ::avro::encode(e, v.inputTableNames);
178  ::avro::encode(e, v.inputColumnNames);
179  ::avro::encode(e, v.outputTableNames);
180  ::avro::encode(e, v.options);
181  ::avro::encode(e, v.overallStatuses);
182  ::avro::encode(e, v.statuses);
183  ::avro::encode(e, v.messages);
184  ::avro::encode(e, v.results);
185  ::avro::encode(e, v.binResults);
186  ::avro::encode(e, v.timings);
187  }
188 
189  static void decode(Decoder& d, gpudb::ShowProcStatusResponse& v)
190  {
191  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
192  {
193  const std::vector<size_t> fo = rd->fieldOrder();
194 
195  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
196  {
197  switch (*it)
198  {
199  case 0:
200  ::avro::decode(d, v.procNames);
201  break;
202 
203  case 1:
204  ::avro::decode(d, v.params);
205  break;
206 
207  case 2:
208  ::avro::decode(d, v.binParams);
209  break;
210 
211  case 3:
212  ::avro::decode(d, v.inputTableNames);
213  break;
214 
215  case 4:
216  ::avro::decode(d, v.inputColumnNames);
217  break;
218 
219  case 5:
220  ::avro::decode(d, v.outputTableNames);
221  break;
222 
223  case 6:
224  ::avro::decode(d, v.options);
225  break;
226 
227  case 7:
228  ::avro::decode(d, v.overallStatuses);
229  break;
230 
231  case 8:
232  ::avro::decode(d, v.statuses);
233  break;
234 
235  case 9:
236  ::avro::decode(d, v.messages);
237  break;
238 
239  case 10:
240  ::avro::decode(d, v.results);
241  break;
242 
243  case 11:
244  ::avro::decode(d, v.binResults);
245  break;
246 
247  case 12:
248  ::avro::decode(d, v.timings);
249  break;
250 
251  default:
252  break;
253  }
254  }
255  }
256  else
257  {
258  ::avro::decode(d, v.procNames);
259  ::avro::decode(d, v.params);
260  ::avro::decode(d, v.binParams);
261  ::avro::decode(d, v.inputTableNames);
262  ::avro::decode(d, v.inputColumnNames);
263  ::avro::decode(d, v.outputTableNames);
264  ::avro::decode(d, v.options);
265  ::avro::decode(d, v.overallStatuses);
266  ::avro::decode(d, v.statuses);
267  ::avro::decode(d, v.messages);
268  ::avro::decode(d, v.results);
269  ::avro::decode(d, v.binResults);
270  ::avro::decode(d, v.timings);
271  }
272  }
273  };
274 }
275 
276 #endif
std::map< std::string, std::map< std::string, std::string > > statuses
A set of output parameters for showProcStatus(const ShowProcStatusRequest&) 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 showProcStatus(const ShowProcStatusRequest&) 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::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.