GPUdb C++ API  Version 7.2.3.0
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 
220  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_):
221  joinTableName( joinTableName_ ),
222  tableNames( tableNames_ ),
223  columnNames( columnNames_ ),
224  expressions( expressions_ ),
225  options( options_ )
226  {
227  }
228 
237  std::string joinTableName;
238 
246  std::vector<std::string> tableNames;
247 
258  std::vector<std::string> columnNames;
259 
266  std::vector<std::string> expressions;
267 
372  std::map<std::string, std::string> options;
373  };
374 } // end namespace gpudb
375 
376 namespace avro
377 {
378  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
379  {
380  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
381  {
382  ::avro::encode(e, v.joinTableName);
383  ::avro::encode(e, v.tableNames);
384  ::avro::encode(e, v.columnNames);
385  ::avro::encode(e, v.expressions);
386  ::avro::encode(e, v.options);
387  }
388 
389  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
390  {
391  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
392  {
393  const std::vector<size_t> fo = rd->fieldOrder();
394 
395  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
396  {
397  switch (*it)
398  {
399  case 0:
400  ::avro::decode(d, v.joinTableName);
401  break;
402 
403  case 1:
404  ::avro::decode(d, v.tableNames);
405  break;
406 
407  case 2:
408  ::avro::decode(d, v.columnNames);
409  break;
410 
411  case 3:
412  ::avro::decode(d, v.expressions);
413  break;
414 
415  case 4:
416  ::avro::decode(d, v.options);
417  break;
418 
419  default:
420  break;
421  }
422  }
423  }
424  else
425  {
426  ::avro::decode(d, v.joinTableName);
427  ::avro::decode(d, v.tableNames);
428  ::avro::decode(d, v.columnNames);
429  ::avro::decode(d, v.expressions);
430  ::avro::decode(d, v.options);
431  }
432  }
433  };
434 } // end namespace avro
435 
436 namespace gpudb
437 {
444  {
449  joinTableName(std::string()),
450  count(int64_t()),
451  info(std::map<std::string, std::string>())
452  {
453  }
454 
459  std::string joinTableName;
460 
465  int64_t count;
466 
476  std::map<std::string, std::string> info;
477  };
478 } // end namespace gpudb
479 
480 namespace avro
481 {
482  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
483  {
484  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
485  {
486  ::avro::encode(e, v.joinTableName);
487  ::avro::encode(e, v.count);
488  ::avro::encode(e, v.info);
489  }
490 
491  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
492  {
493  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
494  {
495  const std::vector<size_t> fo = rd->fieldOrder();
496 
497  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
498  {
499  switch (*it)
500  {
501  case 0:
502  ::avro::decode(d, v.joinTableName);
503  break;
504 
505  case 1:
506  ::avro::decode(d, v.count);
507  break;
508 
509  case 2:
510  ::avro::decode(d, v.info);
511  break;
512 
513  default:
514  break;
515  }
516  }
517  }
518  else
519  {
520  ::avro::decode(d, v.joinTableName);
521  ::avro::decode(d, v.count);
522  ::avro::decode(d, v.info);
523  }
524  }
525  };
526 } // end namespace avro
527 
528 #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.