GPUdb C++ API  Version 6.2.0.3
create_join_table.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 __CREATE_JOIN_TABLE_H__
7 #define __CREATE_JOIN_TABLE_H__
8 
9 namespace gpudb
10 {
11 
24  {
25 
31  joinTableName(std::string()),
32  tableNames(std::vector<std::string>()),
33  columnNames(std::vector<std::string>()),
34  expressions(std::vector<std::string>()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
176  CreateJoinTableRequest(const std::string& joinTableName_, const std::vector<std::string>& tableNames_, const std::vector<std::string>& columnNames_, const std::vector<std::string>& expressions_, const std::map<std::string, std::string>& options_):
177  joinTableName( joinTableName_ ),
178  tableNames( tableNames_ ),
179  columnNames( columnNames_ ),
180  expressions( expressions_ ),
181  options( options_ )
182  {
183  }
184 
185  std::string joinTableName;
186  std::vector<std::string> tableNames;
187  std::vector<std::string> columnNames;
188  std::vector<std::string> expressions;
189  std::map<std::string, std::string> options;
190  };
191 }
192 
193 namespace avro
194 {
195  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
196  {
197  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
198  {
199  ::avro::encode(e, v.joinTableName);
200  ::avro::encode(e, v.tableNames);
201  ::avro::encode(e, v.columnNames);
202  ::avro::encode(e, v.expressions);
203  ::avro::encode(e, v.options);
204  }
205 
206  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
207  {
208  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
209  {
210  const std::vector<size_t> fo = rd->fieldOrder();
211 
212  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
213  {
214  switch (*it)
215  {
216  case 0:
217  ::avro::decode(d, v.joinTableName);
218  break;
219 
220  case 1:
221  ::avro::decode(d, v.tableNames);
222  break;
223 
224  case 2:
225  ::avro::decode(d, v.columnNames);
226  break;
227 
228  case 3:
229  ::avro::decode(d, v.expressions);
230  break;
231 
232  case 4:
233  ::avro::decode(d, v.options);
234  break;
235 
236  default:
237  break;
238  }
239  }
240  }
241  else
242  {
243  ::avro::decode(d, v.joinTableName);
244  ::avro::decode(d, v.tableNames);
245  ::avro::decode(d, v.columnNames);
246  ::avro::decode(d, v.expressions);
247  ::avro::decode(d, v.options);
248  }
249  }
250  };
251 }
252 
253 namespace gpudb
254 {
255 
268  {
269 
275  joinTableName(std::string()),
276  count(int64_t())
277  {
278  }
279 
280  std::string joinTableName;
281  int64_t count;
282  };
283 }
284 
285 namespace avro
286 {
287  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
288  {
289  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
290  {
291  ::avro::encode(e, v.joinTableName);
292  ::avro::encode(e, v.count);
293  }
294 
295  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
296  {
297  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
298  {
299  const std::vector<size_t> fo = rd->fieldOrder();
300 
301  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
302  {
303  switch (*it)
304  {
305  case 0:
306  ::avro::decode(d, v.joinTableName);
307  break;
308 
309  case 1:
310  ::avro::decode(d, v.count);
311  break;
312 
313  default:
314  break;
315  }
316  }
317  }
318  else
319  {
320  ::avro::decode(d, v.joinTableName);
321  ::avro::decode(d, v.count);
322  }
323  }
324  };
325 }
326 
327 #endif
std::vector< std::string > columnNames
std::map< std::string, std::string > options
std::vector< std::string > expressions
A set of input parameters for createJoinTable(const CreateJoinTableRequest&) const.
CreateJoinTableResponse()
Constructs a CreateJoinTableResponse object with default parameter values.
CreateJoinTableRequest(const std::string &joinTableName_, const std::vector< std::string > &tableNames_, const std::vector< std::string > &columnNames_, const std::vector< std::string > &expressions_, const std::map< std::string, std::string > &options_)
Constructs a CreateJoinTableRequest object with the specified parameters.
A set of output parameters for createJoinTable(const CreateJoinTableRequest&) const.
CreateJoinTableRequest()
Constructs a CreateJoinTableRequest object with default parameter values.
std::vector< std::string > tableNames