GPUdb C++ API  Version 7.2.2.4
admin_alter_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_ALTER_JOBS_H__
7 #define __ADMIN_ALTER_JOBS_H__
8 
9 namespace gpudb
10 {
24  {
29  jobIds(std::vector<int64_t>()),
30  action(std::string()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
55  AdminAlterJobsRequest(const std::vector<int64_t>& jobIds_, const std::string& action_, const std::map<std::string, std::string>& options_):
56  jobIds( jobIds_ ),
57  action( action_ ),
58  options( options_ )
59  {
60  }
61 
65  std::vector<int64_t> jobIds;
66 
75  std::string action;
76 
86  std::map<std::string, std::string> options;
87  };
88 } // end namespace gpudb
89 
90 namespace avro
91 {
92  template<> struct codec_traits<gpudb::AdminAlterJobsRequest>
93  {
94  static void encode(Encoder& e, const gpudb::AdminAlterJobsRequest& v)
95  {
96  ::avro::encode(e, v.jobIds);
97  ::avro::encode(e, v.action);
98  ::avro::encode(e, v.options);
99  }
100 
101  static void decode(Decoder& d, gpudb::AdminAlterJobsRequest& v)
102  {
103  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
104  {
105  const std::vector<size_t> fo = rd->fieldOrder();
106 
107  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
108  {
109  switch (*it)
110  {
111  case 0:
112  ::avro::decode(d, v.jobIds);
113  break;
114 
115  case 1:
116  ::avro::decode(d, v.action);
117  break;
118 
119  case 2:
120  ::avro::decode(d, v.options);
121  break;
122 
123  default:
124  break;
125  }
126  }
127  }
128  else
129  {
130  ::avro::decode(d, v.jobIds);
131  ::avro::decode(d, v.action);
132  ::avro::decode(d, v.options);
133  }
134  }
135  };
136 } // end namespace avro
137 
138 namespace gpudb
139 {
146  {
151  jobIds(std::vector<int64_t>()),
152  action(std::string()),
153  status(std::vector<std::string>()),
154  info(std::map<std::string, std::string>())
155  {
156  }
157 
161  std::vector<int64_t> jobIds;
162 
166  std::string action;
167 
171  std::vector<std::string> status;
172 
176  std::map<std::string, std::string> info;
177  };
178 } // end namespace gpudb
179 
180 namespace avro
181 {
182  template<> struct codec_traits<gpudb::AdminAlterJobsResponse>
183  {
184  static void encode(Encoder& e, const gpudb::AdminAlterJobsResponse& v)
185  {
186  ::avro::encode(e, v.jobIds);
187  ::avro::encode(e, v.action);
188  ::avro::encode(e, v.status);
189  ::avro::encode(e, v.info);
190  }
191 
192  static void decode(Decoder& d, gpudb::AdminAlterJobsResponse& v)
193  {
194  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
195  {
196  const std::vector<size_t> fo = rd->fieldOrder();
197 
198  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
199  {
200  switch (*it)
201  {
202  case 0:
203  ::avro::decode(d, v.jobIds);
204  break;
205 
206  case 1:
207  ::avro::decode(d, v.action);
208  break;
209 
210  case 2:
211  ::avro::decode(d, v.status);
212  break;
213 
214  case 3:
215  ::avro::decode(d, v.info);
216  break;
217 
218  default:
219  break;
220  }
221  }
222  }
223  else
224  {
225  ::avro::decode(d, v.jobIds);
226  ::avro::decode(d, v.action);
227  ::avro::decode(d, v.status);
228  ::avro::decode(d, v.info);
229  }
230  }
231  };
232 } // end namespace avro
233 
234 #endif // __ADMIN_ALTER_JOBS_H__
std::string action
Action to be performed on the jobs specified by job_ids.
A set of results returned by GPUdb::adminAlterJobs.
std::map< std::string, std::string > info
Additional information.
std::vector< int64_t > jobIds
Jobs on which the action was performed.
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
Optional parameters.
std::string action
Action requested on the jobs.
std::vector< int64_t > jobIds
Jobs to be modified.
std::vector< std::string > status
Status of the requested action for each job.
A set of parameters for GPUdb::adminAlterJobs.
AdminAlterJobsRequest()
Constructs an AdminAlterJobsRequest object with default parameters.
AdminAlterJobsResponse()
Constructs an AdminAlterJobsResponse object with default parameters.