GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_alter_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_ALTER_JOBS_H__
7 #define __ADMIN_ALTER_JOBS_H__
8 
9 namespace gpudb
10 {
11 
26  {
27 
33  jobIds(std::vector<int64_t>()),
34  action(std::string()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
56  AdminAlterJobsRequest(const std::vector<int64_t>& jobIds_, const std::string& action_, const std::map<std::string, std::string>& options_):
57  jobIds( jobIds_ ),
58  action( action_ ),
59  options( options_ )
60  {
61  }
62 
63  std::vector<int64_t> jobIds;
64  std::string action;
65  std::map<std::string, std::string> options;
66  };
67 }
68 
69 namespace avro
70 {
71  template<> struct codec_traits<gpudb::AdminAlterJobsRequest>
72  {
73  static void encode(Encoder& e, const gpudb::AdminAlterJobsRequest& v)
74  {
75  ::avro::encode(e, v.jobIds);
76  ::avro::encode(e, v.action);
77  ::avro::encode(e, v.options);
78  }
79 
80  static void decode(Decoder& d, gpudb::AdminAlterJobsRequest& v)
81  {
82  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
83  {
84  const std::vector<size_t> fo = rd->fieldOrder();
85 
86  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
87  {
88  switch (*it)
89  {
90  case 0:
91  ::avro::decode(d, v.jobIds);
92  break;
93 
94  case 1:
95  ::avro::decode(d, v.action);
96  break;
97 
98  case 2:
99  ::avro::decode(d, v.options);
100  break;
101 
102  default:
103  break;
104  }
105  }
106  }
107  else
108  {
109  ::avro::decode(d, v.jobIds);
110  ::avro::decode(d, v.action);
111  ::avro::decode(d, v.options);
112  }
113  }
114  };
115 }
116 
117 namespace gpudb
118 {
119 
134  {
135 
141  jobIds(std::vector<int64_t>()),
142  action(std::string()),
143  status(std::vector<std::string>()),
144  info(std::map<std::string, std::string>())
145  {
146  }
147 
148  std::vector<int64_t> jobIds;
149  std::string action;
150  std::vector<std::string> status;
151  std::map<std::string, std::string> info;
152  };
153 }
154 
155 namespace avro
156 {
157  template<> struct codec_traits<gpudb::AdminAlterJobsResponse>
158  {
159  static void encode(Encoder& e, const gpudb::AdminAlterJobsResponse& v)
160  {
161  ::avro::encode(e, v.jobIds);
162  ::avro::encode(e, v.action);
163  ::avro::encode(e, v.status);
164  ::avro::encode(e, v.info);
165  }
166 
167  static void decode(Decoder& d, gpudb::AdminAlterJobsResponse& v)
168  {
169  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
170  {
171  const std::vector<size_t> fo = rd->fieldOrder();
172 
173  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
174  {
175  switch (*it)
176  {
177  case 0:
178  ::avro::decode(d, v.jobIds);
179  break;
180 
181  case 1:
182  ::avro::decode(d, v.action);
183  break;
184 
185  case 2:
186  ::avro::decode(d, v.status);
187  break;
188 
189  case 3:
190  ::avro::decode(d, v.info);
191  break;
192 
193  default:
194  break;
195  }
196  }
197  }
198  else
199  {
200  ::avro::decode(d, v.jobIds);
201  ::avro::decode(d, v.action);
202  ::avro::decode(d, v.status);
203  ::avro::decode(d, v.info);
204  }
205  }
206  };
207 }
208 
209 #endif
A set of output parameters for const.
std::map< std::string, std::string > info
std::vector< int64_t > jobIds
AdminAlterJobsRequest(const std::vector< int64_t > &jobIds_, const std::string &action_, const std::map< std::string, std::string > &options_)
Constructs an AdminAlterJobsRequest object with the specified parameters.
std::map< std::string, std::string > options
std::vector< int64_t > jobIds
std::vector< std::string > status
A set of input parameters for const.
AdminAlterJobsRequest()
Constructs an AdminAlterJobsRequest object with default parameter values.
AdminAlterJobsResponse()
Constructs an AdminAlterJobsResponse object with default parameter values.