GPUdb C++ API  Version 7.2.2.4
admin_show_jobs.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 __ADMIN_SHOW_JOBS_H__
7 #define __ADMIN_SHOW_JOBS_H__
8 
9 namespace gpudb
10 {
19  {
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
75  AdminShowJobsRequest(const std::map<std::string, std::string>& options_):
76  options( options_ )
77  {
78  }
79 
113  std::map<std::string, std::string> options;
114  };
115 } // end namespace gpudb
116 
117 namespace avro
118 {
119  template<> struct codec_traits<gpudb::AdminShowJobsRequest>
120  {
121  static void encode(Encoder& e, const gpudb::AdminShowJobsRequest& v)
122  {
123  ::avro::encode(e, v.options);
124  }
125 
126  static void decode(Decoder& d, gpudb::AdminShowJobsRequest& v)
127  {
128  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
129  {
130  const std::vector<size_t> fo = rd->fieldOrder();
131 
132  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
133  {
134  switch (*it)
135  {
136  case 0:
137  ::avro::decode(d, v.options);
138  break;
139 
140  default:
141  break;
142  }
143  }
144  }
145  else
146  {
147  ::avro::decode(d, v.options);
148  }
149  }
150  };
151 } // end namespace avro
152 
153 namespace gpudb
154 {
161  {
166  jobId(std::vector<int64_t>()),
167  status(std::vector<std::string>()),
168  endpointName(std::vector<std::string>()),
169  timeReceived(std::vector<int64_t>()),
170  authId(std::vector<std::string>()),
171  sourceIp(std::vector<std::string>()),
172  queryText(std::vector<std::string>()),
173  userData(std::vector<std::string>()),
174  flags(std::vector<std::string>()),
175  info(std::map<std::string, std::string>())
176  {
177  }
178 
179  std::vector<int64_t> jobId;
180  std::vector<std::string> status;
181  std::vector<std::string> endpointName;
182  std::vector<int64_t> timeReceived;
183  std::vector<std::string> authId;
184  std::vector<std::string> sourceIp;
185  std::vector<std::string> queryText;
186  std::vector<std::string> userData;
187  std::vector<std::string> flags;
188 
202  std::map<std::string, std::string> info;
203  };
204 } // end namespace gpudb
205 
206 namespace avro
207 {
208  template<> struct codec_traits<gpudb::AdminShowJobsResponse>
209  {
210  static void encode(Encoder& e, const gpudb::AdminShowJobsResponse& v)
211  {
212  ::avro::encode(e, v.jobId);
213  ::avro::encode(e, v.status);
214  ::avro::encode(e, v.endpointName);
215  ::avro::encode(e, v.timeReceived);
216  ::avro::encode(e, v.authId);
217  ::avro::encode(e, v.sourceIp);
218  ::avro::encode(e, v.queryText);
219  ::avro::encode(e, v.userData);
220  ::avro::encode(e, v.flags);
221  ::avro::encode(e, v.info);
222  }
223 
224  static void decode(Decoder& d, gpudb::AdminShowJobsResponse& v)
225  {
226  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
227  {
228  const std::vector<size_t> fo = rd->fieldOrder();
229 
230  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
231  {
232  switch (*it)
233  {
234  case 0:
235  ::avro::decode(d, v.jobId);
236  break;
237 
238  case 1:
239  ::avro::decode(d, v.status);
240  break;
241 
242  case 2:
243  ::avro::decode(d, v.endpointName);
244  break;
245 
246  case 3:
247  ::avro::decode(d, v.timeReceived);
248  break;
249 
250  case 4:
251  ::avro::decode(d, v.authId);
252  break;
253 
254  case 5:
255  ::avro::decode(d, v.sourceIp);
256  break;
257 
258  case 6:
259  ::avro::decode(d, v.queryText);
260  break;
261 
262  case 7:
263  ::avro::decode(d, v.userData);
264  break;
265 
266  case 8:
267  ::avro::decode(d, v.flags);
268  break;
269 
270  case 9:
271  ::avro::decode(d, v.info);
272  break;
273 
274  default:
275  break;
276  }
277  }
278  }
279  else
280  {
281  ::avro::decode(d, v.jobId);
282  ::avro::decode(d, v.status);
283  ::avro::decode(d, v.endpointName);
284  ::avro::decode(d, v.timeReceived);
285  ::avro::decode(d, v.authId);
286  ::avro::decode(d, v.sourceIp);
287  ::avro::decode(d, v.queryText);
288  ::avro::decode(d, v.userData);
289  ::avro::decode(d, v.flags);
290  ::avro::decode(d, v.info);
291  }
292  }
293  };
294 } // end namespace avro
295 
296 #endif // __ADMIN_SHOW_JOBS_H__
std::vector< std::string > status
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > userData
std::vector< std::string > flags
AdminShowJobsRequest()
Constructs an AdminShowJobsRequest object with default parameters.
std::vector< std::string > authId
std::vector< std::string > sourceIp
std::vector< std::string > endpointName
std::vector< int64_t > timeReceived
A set of results returned by GPUdb::adminShowJobs.
AdminShowJobsResponse()
Constructs an AdminShowJobsResponse object with default parameters.
AdminShowJobsRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminShowJobsRequest object with the specified parameters.
A set of parameters for GPUdb::adminShowJobs.
std::vector< std::string > queryText
std::vector< int64_t > jobId
std::map< std::string, std::string > options
Optional parameters.