GPUdb C++ API  Version 7.2.2.4
create_join_table.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 __CREATE_JOIN_TABLE_H__
7 #define __CREATE_JOIN_TABLE_H__
8 
9 namespace gpudb
10 {
24  {
29  joinTableName(std::string()),
30  tableNames(std::vector<std::string>()),
31  columnNames(std::vector<std::string>()),
32  expressions(std::vector<std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
180  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_):
181  joinTableName( joinTableName_ ),
182  tableNames( tableNames_ ),
183  columnNames( columnNames_ ),
184  expressions( expressions_ ),
185  options( options_ )
186  {
187  }
188 
197  std::string joinTableName;
198 
206  std::vector<std::string> tableNames;
207 
218  std::vector<std::string> columnNames;
219 
226  std::vector<std::string> expressions;
227 
304  std::map<std::string, std::string> options;
305  };
306 } // end namespace gpudb
307 
308 namespace avro
309 {
310  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
311  {
312  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
313  {
314  ::avro::encode(e, v.joinTableName);
315  ::avro::encode(e, v.tableNames);
316  ::avro::encode(e, v.columnNames);
317  ::avro::encode(e, v.expressions);
318  ::avro::encode(e, v.options);
319  }
320 
321  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
322  {
323  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
324  {
325  const std::vector<size_t> fo = rd->fieldOrder();
326 
327  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
328  {
329  switch (*it)
330  {
331  case 0:
332  ::avro::decode(d, v.joinTableName);
333  break;
334 
335  case 1:
336  ::avro::decode(d, v.tableNames);
337  break;
338 
339  case 2:
340  ::avro::decode(d, v.columnNames);
341  break;
342 
343  case 3:
344  ::avro::decode(d, v.expressions);
345  break;
346 
347  case 4:
348  ::avro::decode(d, v.options);
349  break;
350 
351  default:
352  break;
353  }
354  }
355  }
356  else
357  {
358  ::avro::decode(d, v.joinTableName);
359  ::avro::decode(d, v.tableNames);
360  ::avro::decode(d, v.columnNames);
361  ::avro::decode(d, v.expressions);
362  ::avro::decode(d, v.options);
363  }
364  }
365  };
366 } // end namespace avro
367 
368 namespace gpudb
369 {
376  {
381  joinTableName(std::string()),
382  count(int64_t()),
383  info(std::map<std::string, std::string>())
384  {
385  }
386 
391  std::string joinTableName;
392 
397  int64_t count;
398 
408  std::map<std::string, std::string> info;
409  };
410 } // end namespace gpudb
411 
412 namespace avro
413 {
414  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
415  {
416  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
417  {
418  ::avro::encode(e, v.joinTableName);
419  ::avro::encode(e, v.count);
420  ::avro::encode(e, v.info);
421  }
422 
423  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
424  {
425  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
426  {
427  const std::vector<size_t> fo = rd->fieldOrder();
428 
429  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
430  {
431  switch (*it)
432  {
433  case 0:
434  ::avro::decode(d, v.joinTableName);
435  break;
436 
437  case 1:
438  ::avro::decode(d, v.count);
439  break;
440 
441  case 2:
442  ::avro::decode(d, v.info);
443  break;
444 
445  default:
446  break;
447  }
448  }
449  }
450  else
451  {
452  ::avro::decode(d, v.joinTableName);
453  ::avro::decode(d, v.count);
454  ::avro::decode(d, v.info);
455  }
456  }
457  };
458 } // end namespace avro
459 
460 #endif // __CREATE_JOIN_TABLE_H__
std::string joinTableName
Value of joinTableName.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > columnNames
List of member table columns or column expressions to be included in the join.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > expressions
An optional list of expressions to combine and filter the joined tables.
int64_t count
The number of records in the join table filtered by the given select expression.
A set of parameters for GPUdb::createJoinTable.
CreateJoinTableResponse()
Constructs a CreateJoinTableResponse object with default parameters.
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 results returned by GPUdb::createJoinTable.
std::string joinTableName
Name of the join table to be created, in [ schema_name. ]table_name format, using standard name resol...
CreateJoinTableRequest()
Constructs a CreateJoinTableRequest object with default parameters.
std::vector< std::string > tableNames
The list of table names composing the join, each in [ schema_name.