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 
203  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_):
204  joinTableName( joinTableName_ ),
205  tableNames( tableNames_ ),
206  columnNames( columnNames_ ),
207  expressions( expressions_ ),
208  options( options_ )
209  {
210  }
211 
220  std::string joinTableName;
221 
229  std::vector<std::string> tableNames;
230 
241  std::vector<std::string> columnNames;
242 
249  std::vector<std::string> expressions;
250 
343  std::map<std::string, std::string> options;
344  };
345 } // end namespace gpudb
346 
347 namespace avro
348 {
349  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
350  {
351  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
352  {
353  ::avro::encode(e, v.joinTableName);
354  ::avro::encode(e, v.tableNames);
355  ::avro::encode(e, v.columnNames);
356  ::avro::encode(e, v.expressions);
357  ::avro::encode(e, v.options);
358  }
359 
360  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
361  {
362  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
363  {
364  const std::vector<size_t> fo = rd->fieldOrder();
365 
366  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
367  {
368  switch (*it)
369  {
370  case 0:
371  ::avro::decode(d, v.joinTableName);
372  break;
373 
374  case 1:
375  ::avro::decode(d, v.tableNames);
376  break;
377 
378  case 2:
379  ::avro::decode(d, v.columnNames);
380  break;
381 
382  case 3:
383  ::avro::decode(d, v.expressions);
384  break;
385 
386  case 4:
387  ::avro::decode(d, v.options);
388  break;
389 
390  default:
391  break;
392  }
393  }
394  }
395  else
396  {
397  ::avro::decode(d, v.joinTableName);
398  ::avro::decode(d, v.tableNames);
399  ::avro::decode(d, v.columnNames);
400  ::avro::decode(d, v.expressions);
401  ::avro::decode(d, v.options);
402  }
403  }
404  };
405 } // end namespace avro
406 
407 namespace gpudb
408 {
415  {
420  joinTableName(std::string()),
421  count(int64_t()),
422  info(std::map<std::string, std::string>())
423  {
424  }
425 
430  std::string joinTableName;
431 
436  int64_t count;
437 
447  std::map<std::string, std::string> info;
448  };
449 } // end namespace gpudb
450 
451 namespace avro
452 {
453  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
454  {
455  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
456  {
457  ::avro::encode(e, v.joinTableName);
458  ::avro::encode(e, v.count);
459  ::avro::encode(e, v.info);
460  }
461 
462  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
463  {
464  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
465  {
466  const std::vector<size_t> fo = rd->fieldOrder();
467 
468  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
469  {
470  switch (*it)
471  {
472  case 0:
473  ::avro::decode(d, v.joinTableName);
474  break;
475 
476  case 1:
477  ::avro::decode(d, v.count);
478  break;
479 
480  case 2:
481  ::avro::decode(d, v.info);
482  break;
483 
484  default:
485  break;
486  }
487  }
488  }
489  else
490  {
491  ::avro::decode(d, v.joinTableName);
492  ::avro::decode(d, v.count);
493  ::avro::decode(d, v.info);
494  }
495  }
496  };
497 } // end namespace avro
498 
499 #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.