GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_rebalance.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_REBALANCE_H__
7 #define __ADMIN_REBALANCE_H__
8 
9 namespace gpudb
10 {
11 
50  {
51 
57  options(std::map<std::string, std::string>())
58  {
59  }
60 
173  AdminRebalanceRequest(const std::map<std::string, std::string>& options_):
174  options( options_ )
175  {
176  }
177 
178  std::map<std::string, std::string> options;
179  };
180 }
181 
182 namespace avro
183 {
184  template<> struct codec_traits<gpudb::AdminRebalanceRequest>
185  {
186  static void encode(Encoder& e, const gpudb::AdminRebalanceRequest& v)
187  {
188  ::avro::encode(e, v.options);
189  }
190 
191  static void decode(Decoder& d, gpudb::AdminRebalanceRequest& v)
192  {
193  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
194  {
195  const std::vector<size_t> fo = rd->fieldOrder();
196 
197  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
198  {
199  switch (*it)
200  {
201  case 0:
202  ::avro::decode(d, v.options);
203  break;
204 
205  default:
206  break;
207  }
208  }
209  }
210  else
211  {
212  ::avro::decode(d, v.options);
213  }
214  }
215  };
216 }
217 
218 namespace gpudb
219 {
220 
259  {
260 
266  info(std::map<std::string, std::string>())
267  {
268  }
269 
270  std::map<std::string, std::string> info;
271  };
272 }
273 
274 namespace avro
275 {
276  template<> struct codec_traits<gpudb::AdminRebalanceResponse>
277  {
278  static void encode(Encoder& e, const gpudb::AdminRebalanceResponse& v)
279  {
280  ::avro::encode(e, v.info);
281  }
282 
283  static void decode(Decoder& d, gpudb::AdminRebalanceResponse& v)
284  {
285  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
286  {
287  const std::vector<size_t> fo = rd->fieldOrder();
288 
289  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
290  {
291  switch (*it)
292  {
293  case 0:
294  ::avro::decode(d, v.info);
295  break;
296 
297  default:
298  break;
299  }
300  }
301  }
302  else
303  {
304  ::avro::decode(d, v.info);
305  }
306  }
307  };
308 }
309 
310 #endif
std::map< std::string, std::string > info
AdminRebalanceResponse()
Constructs an AdminRebalanceResponse object with default parameter values.
A set of input parameters for const.
AdminRebalanceRequest()
Constructs an AdminRebalanceRequest object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > options
AdminRebalanceRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminRebalanceRequest object with the specified parameters.