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