GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_remove_ranks.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_REMOVE_RANKS_H__
7 #define __ADMIN_REMOVE_RANKS_H__
8 
9 namespace gpudb
10 {
11 
39  {
40 
46  ranks(std::vector<std::string>()),
47  options(std::map<std::string, std::string>())
48  {
49  }
50 
112  AdminRemoveRanksRequest(const std::vector<std::string>& ranks_, const std::map<std::string, std::string>& options_):
113  ranks( ranks_ ),
114  options( options_ )
115  {
116  }
117 
118  std::vector<std::string> ranks;
119  std::map<std::string, std::string> options;
120  };
121 }
122 
123 namespace avro
124 {
125  template<> struct codec_traits<gpudb::AdminRemoveRanksRequest>
126  {
127  static void encode(Encoder& e, const gpudb::AdminRemoveRanksRequest& v)
128  {
129  ::avro::encode(e, v.ranks);
130  ::avro::encode(e, v.options);
131  }
132 
133  static void decode(Decoder& d, gpudb::AdminRemoveRanksRequest& v)
134  {
135  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
136  {
137  const std::vector<size_t> fo = rd->fieldOrder();
138 
139  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
140  {
141  switch (*it)
142  {
143  case 0:
144  ::avro::decode(d, v.ranks);
145  break;
146 
147  case 1:
148  ::avro::decode(d, v.options);
149  break;
150 
151  default:
152  break;
153  }
154  }
155  }
156  else
157  {
158  ::avro::decode(d, v.ranks);
159  ::avro::decode(d, v.options);
160  }
161  }
162  };
163 }
164 
165 namespace gpudb
166 {
167 
195  {
196 
202  removedRanks(std::vector<std::string>()),
203  info(std::map<std::string, std::string>())
204  {
205  }
206 
207  std::vector<std::string> removedRanks;
208  std::map<std::string, std::string> info;
209  };
210 }
211 
212 namespace avro
213 {
214  template<> struct codec_traits<gpudb::AdminRemoveRanksResponse>
215  {
216  static void encode(Encoder& e, const gpudb::AdminRemoveRanksResponse& v)
217  {
218  ::avro::encode(e, v.removedRanks);
219  ::avro::encode(e, v.info);
220  }
221 
222  static void decode(Decoder& d, gpudb::AdminRemoveRanksResponse& v)
223  {
224  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
225  {
226  const std::vector<size_t> fo = rd->fieldOrder();
227 
228  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
229  {
230  switch (*it)
231  {
232  case 0:
233  ::avro::decode(d, v.removedRanks);
234  break;
235 
236  case 1:
237  ::avro::decode(d, v.info);
238  break;
239 
240  default:
241  break;
242  }
243  }
244  }
245  else
246  {
247  ::avro::decode(d, v.removedRanks);
248  ::avro::decode(d, v.info);
249  }
250  }
251  };
252 }
253 
254 #endif
AdminRemoveRanksResponse()
Constructs an AdminRemoveRanksResponse object with default parameter values.
AdminRemoveRanksRequest(const std::vector< std::string > &ranks_, const std::map< std::string, std::string > &options_)
Constructs an AdminRemoveRanksRequest object with the specified parameters.
std::vector< std::string > removedRanks
std::vector< std::string > ranks
A set of input parameters for const.
std::map< std::string, std::string > options
A set of output parameters for const.
std::map< std::string, std::string > info
AdminRemoveRanksRequest()
Constructs an AdminRemoveRanksRequest object with default parameter values.