GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_show_jobs.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 __ADMIN_SHOW_JOBS_H__
7 #define __ADMIN_SHOW_JOBS_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
60  AdminShowJobsRequest(const std::map<std::string, std::string>& options_):
61  options( options_ )
62  {
63  }
64 
65  std::map<std::string, std::string> options;
66  };
67 }
68 
69 namespace avro
70 {
71  template<> struct codec_traits<gpudb::AdminShowJobsRequest>
72  {
73  static void encode(Encoder& e, const gpudb::AdminShowJobsRequest& v)
74  {
75  ::avro::encode(e, v.options);
76  }
77 
78  static void decode(Decoder& d, gpudb::AdminShowJobsRequest& v)
79  {
80  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81  {
82  const std::vector<size_t> fo = rd->fieldOrder();
83 
84  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85  {
86  switch (*it)
87  {
88  case 0:
89  ::avro::decode(d, v.options);
90  break;
91 
92  default:
93  break;
94  }
95  }
96  }
97  else
98  {
99  ::avro::decode(d, v.options);
100  }
101  }
102  };
103 }
104 
105 namespace gpudb
106 {
107 
115  {
116 
122  jobId(std::vector<int64_t>()),
123  status(std::vector<std::string>()),
124  endpointName(std::vector<std::string>()),
125  timeReceived(std::vector<int64_t>()),
126  authId(std::vector<std::string>()),
127  sourceIp(std::vector<std::string>()),
128  userData(std::vector<std::string>()),
129  flags(std::vector<std::string>()),
130  info(std::map<std::string, std::string>())
131  {
132  }
133 
134  std::vector<int64_t> jobId;
135  std::vector<std::string> status;
136  std::vector<std::string> endpointName;
137  std::vector<int64_t> timeReceived;
138  std::vector<std::string> authId;
139  std::vector<std::string> sourceIp;
140  std::vector<std::string> userData;
141  std::vector<std::string> flags;
142  std::map<std::string, std::string> info;
143  };
144 }
145 
146 namespace avro
147 {
148  template<> struct codec_traits<gpudb::AdminShowJobsResponse>
149  {
150  static void encode(Encoder& e, const gpudb::AdminShowJobsResponse& v)
151  {
152  ::avro::encode(e, v.jobId);
153  ::avro::encode(e, v.status);
154  ::avro::encode(e, v.endpointName);
155  ::avro::encode(e, v.timeReceived);
156  ::avro::encode(e, v.authId);
157  ::avro::encode(e, v.sourceIp);
158  ::avro::encode(e, v.userData);
159  ::avro::encode(e, v.flags);
160  ::avro::encode(e, v.info);
161  }
162 
163  static void decode(Decoder& d, gpudb::AdminShowJobsResponse& v)
164  {
165  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
166  {
167  const std::vector<size_t> fo = rd->fieldOrder();
168 
169  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
170  {
171  switch (*it)
172  {
173  case 0:
174  ::avro::decode(d, v.jobId);
175  break;
176 
177  case 1:
178  ::avro::decode(d, v.status);
179  break;
180 
181  case 2:
182  ::avro::decode(d, v.endpointName);
183  break;
184 
185  case 3:
186  ::avro::decode(d, v.timeReceived);
187  break;
188 
189  case 4:
190  ::avro::decode(d, v.authId);
191  break;
192 
193  case 5:
194  ::avro::decode(d, v.sourceIp);
195  break;
196 
197  case 6:
198  ::avro::decode(d, v.userData);
199  break;
200 
201  case 7:
202  ::avro::decode(d, v.flags);
203  break;
204 
205  case 8:
206  ::avro::decode(d, v.info);
207  break;
208 
209  default:
210  break;
211  }
212  }
213  }
214  else
215  {
216  ::avro::decode(d, v.jobId);
217  ::avro::decode(d, v.status);
218  ::avro::decode(d, v.endpointName);
219  ::avro::decode(d, v.timeReceived);
220  ::avro::decode(d, v.authId);
221  ::avro::decode(d, v.sourceIp);
222  ::avro::decode(d, v.userData);
223  ::avro::decode(d, v.flags);
224  ::avro::decode(d, v.info);
225  }
226  }
227  };
228 }
229 
230 #endif
std::vector< std::string > status
std::map< std::string, std::string > info
std::vector< std::string > userData
std::vector< std::string > flags
AdminShowJobsRequest()
Constructs an AdminShowJobsRequest object with default parameter values.
std::vector< std::string > authId
std::vector< std::string > sourceIp
std::vector< std::string > endpointName
std::vector< int64_t > timeReceived
A set of output parameters for const.
AdminShowJobsResponse()
Constructs an AdminShowJobsResponse object with default parameter values.
AdminShowJobsRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminShowJobsRequest object with the specified parameters.
A set of input parameters for const.
std::vector< int64_t > jobId
std::map< std::string, std::string > options