GPUdb C++ API  Version 7.2.3.0
show_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 __SHOW_TABLE_H__
7 #define __SHOW_TABLE_H__
8 
9 namespace gpudb
10 {
45  {
50  tableName(std::string()),
51  options(std::map<std::string, std::string>())
52  {
53  }
54 
258  ShowTableRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
259  tableName( tableName_ ),
260  options( options_ )
261  {
262  }
263 
271  std::string tableName;
272 
412  std::map<std::string, std::string> options;
413  };
414 } // end namespace gpudb
415 
416 namespace avro
417 {
418  template<> struct codec_traits<gpudb::ShowTableRequest>
419  {
420  static void encode(Encoder& e, const gpudb::ShowTableRequest& v)
421  {
422  ::avro::encode(e, v.tableName);
423  ::avro::encode(e, v.options);
424  }
425 
426  static void decode(Decoder& d, gpudb::ShowTableRequest& v)
427  {
428  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
429  {
430  const std::vector<size_t> fo = rd->fieldOrder();
431 
432  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
433  {
434  switch (*it)
435  {
436  case 0:
437  ::avro::decode(d, v.tableName);
438  break;
439 
440  case 1:
441  ::avro::decode(d, v.options);
442  break;
443 
444  default:
445  break;
446  }
447  }
448  }
449  else
450  {
451  ::avro::decode(d, v.tableName);
452  ::avro::decode(d, v.options);
453  }
454  }
455  };
456 } // end namespace avro
457 
458 namespace gpudb
459 {
465  {
470  tableName(std::string()),
471  tableNames(std::vector<std::string>()),
472  tableDescriptions(std::vector<std::vector<std::string> >()),
473  typeIds(std::vector<std::string>()),
474  typeSchemas(std::vector<std::string>()),
475  typeLabels(std::vector<std::string>()),
476  properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
477  additionalInfo(std::vector<std::map<std::string, std::string> >()),
478  sizes(std::vector<int64_t>()),
479  fullSizes(std::vector<int64_t>()),
480  joinSizes(std::vector<double>()),
481  totalSize(int64_t()),
482  totalFullSize(int64_t()),
483  info(std::map<std::string, std::string>())
484  {
485  }
486 
490  std::string tableName;
491 
506  std::vector<std::string> tableNames;
507 
533  std::vector<std::vector<std::string> > tableDescriptions;
534 
538  std::vector<std::string> typeIds;
539 
543  std::vector<std::string> typeSchemas;
544 
548  std::vector<std::string> typeLabels;
549 
553  std::vector<std::map<std::string, std::vector<std::string> > > properties;
554 
811  std::vector<std::map<std::string, std::string> > additionalInfo;
812 
819  std::vector<int64_t> sizes;
820 
827  std::vector<int64_t> fullSizes;
828 
840  std::vector<double> joinSizes;
841 
847  int64_t totalSize;
848 
854  int64_t totalFullSize;
855 
859  std::map<std::string, std::string> info;
860  };
861 } // end namespace gpudb
862 
863 namespace avro
864 {
865  template<> struct codec_traits<gpudb::ShowTableResponse>
866  {
867  static void encode(Encoder& e, const gpudb::ShowTableResponse& v)
868  {
869  ::avro::encode(e, v.tableName);
870  ::avro::encode(e, v.tableNames);
871  ::avro::encode(e, v.tableDescriptions);
872  ::avro::encode(e, v.typeIds);
873  ::avro::encode(e, v.typeSchemas);
874  ::avro::encode(e, v.typeLabels);
875  ::avro::encode(e, v.properties);
876  ::avro::encode(e, v.additionalInfo);
877  ::avro::encode(e, v.sizes);
878  ::avro::encode(e, v.fullSizes);
879  ::avro::encode(e, v.joinSizes);
880  ::avro::encode(e, v.totalSize);
881  ::avro::encode(e, v.totalFullSize);
882  ::avro::encode(e, v.info);
883  }
884 
885  static void decode(Decoder& d, gpudb::ShowTableResponse& v)
886  {
887  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
888  {
889  const std::vector<size_t> fo = rd->fieldOrder();
890 
891  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
892  {
893  switch (*it)
894  {
895  case 0:
896  ::avro::decode(d, v.tableName);
897  break;
898 
899  case 1:
900  ::avro::decode(d, v.tableNames);
901  break;
902 
903  case 2:
904  ::avro::decode(d, v.tableDescriptions);
905  break;
906 
907  case 3:
908  ::avro::decode(d, v.typeIds);
909  break;
910 
911  case 4:
912  ::avro::decode(d, v.typeSchemas);
913  break;
914 
915  case 5:
916  ::avro::decode(d, v.typeLabels);
917  break;
918 
919  case 6:
920  ::avro::decode(d, v.properties);
921  break;
922 
923  case 7:
924  ::avro::decode(d, v.additionalInfo);
925  break;
926 
927  case 8:
928  ::avro::decode(d, v.sizes);
929  break;
930 
931  case 9:
932  ::avro::decode(d, v.fullSizes);
933  break;
934 
935  case 10:
936  ::avro::decode(d, v.joinSizes);
937  break;
938 
939  case 11:
940  ::avro::decode(d, v.totalSize);
941  break;
942 
943  case 12:
944  ::avro::decode(d, v.totalFullSize);
945  break;
946 
947  case 13:
948  ::avro::decode(d, v.info);
949  break;
950 
951  default:
952  break;
953  }
954  }
955  }
956  else
957  {
958  ::avro::decode(d, v.tableName);
959  ::avro::decode(d, v.tableNames);
960  ::avro::decode(d, v.tableDescriptions);
961  ::avro::decode(d, v.typeIds);
962  ::avro::decode(d, v.typeSchemas);
963  ::avro::decode(d, v.typeLabels);
964  ::avro::decode(d, v.properties);
965  ::avro::decode(d, v.additionalInfo);
966  ::avro::decode(d, v.sizes);
967  ::avro::decode(d, v.fullSizes);
968  ::avro::decode(d, v.joinSizes);
969  ::avro::decode(d, v.totalSize);
970  ::avro::decode(d, v.totalFullSize);
971  ::avro::decode(d, v.info);
972  }
973  }
974  };
975 } // end namespace avro
976 
977 #endif // __SHOW_TABLE_H__
ShowTableRequest()
Constructs a ShowTableRequest object with default parameters.
Definition: show_table.h:49
std::vector< double > joinSizes
If get_sizes is true, an array containing the number of unfiltered records in the cross product of th...
Definition: show_table.h:840
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in tableNames.
Definition: show_table.h:811
std::vector< std::string > typeLabels
Type labels of the respective tables in tableNames.
Definition: show_table.h:548
std::vector< int64_t > fullSizes
If get_sizes is true, an array containing the number of records of each corresponding table in tableN...
Definition: show_table.h:827
std::string tableName
Value of tableName.
Definition: show_table.h:490
std::map< std::string, std::string > info
Additional information.
Definition: show_table.h:859
ShowTableRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a ShowTableRequest object with the specified parameters.
Definition: show_table.h:258
int64_t totalSize
If get_sizes is true, the sum of the elements of sizes.
Definition: show_table.h:847
std::vector< std::string > typeSchemas
Type schemas of the respective tables in tableNames.
Definition: show_table.h:543
std::vector< std::map< std::string, std::vector< std::string > > > properties
Property maps of the respective tables in tableNames.
Definition: show_table.h:553
A set of parameters for GPUdb::showTable.
Definition: show_table.h:44
std::vector< std::vector< std::string > > tableDescriptions
List of descriptions for the respective tables in tableNames.
Definition: show_table.h:533
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
Definition: show_table.h:469
std::string tableName
Name of the table for which to retrieve the information, in [ schema_name. ]table_name format,...
Definition: show_table.h:271
std::map< std::string, std::string > options
Optional parameters.
Definition: show_table.h:412
int64_t totalFullSize
If get_sizes is true, the sum of the elements of fullSizes (same value as totalSize).
Definition: show_table.h:854
std::vector< std::string > tableNames
If tableName is a table or view, then the single element of the array is tableName.
Definition: show_table.h:506
std::vector< std::string > typeIds
Type IDs of the respective tables in tableNames.
Definition: show_table.h:538
A set of results returned by GPUdb::showTable.
Definition: show_table.h:464
std::vector< int64_t > sizes
If get_sizes is true, an array containing the number of records of each corresponding table in tableN...
Definition: show_table.h:819