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 
243  ShowTableRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
244  tableName( tableName_ ),
245  options( options_ )
246  {
247  }
248 
256  std::string tableName;
257 
386  std::map<std::string, std::string> options;
387  };
388 } // end namespace gpudb
389 
390 namespace avro
391 {
392  template<> struct codec_traits<gpudb::ShowTableRequest>
393  {
394  static void encode(Encoder& e, const gpudb::ShowTableRequest& v)
395  {
396  ::avro::encode(e, v.tableName);
397  ::avro::encode(e, v.options);
398  }
399 
400  static void decode(Decoder& d, gpudb::ShowTableRequest& v)
401  {
402  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
403  {
404  const std::vector<size_t> fo = rd->fieldOrder();
405 
406  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
407  {
408  switch (*it)
409  {
410  case 0:
411  ::avro::decode(d, v.tableName);
412  break;
413 
414  case 1:
415  ::avro::decode(d, v.options);
416  break;
417 
418  default:
419  break;
420  }
421  }
422  }
423  else
424  {
425  ::avro::decode(d, v.tableName);
426  ::avro::decode(d, v.options);
427  }
428  }
429  };
430 } // end namespace avro
431 
432 namespace gpudb
433 {
439  {
444  tableName(std::string()),
445  tableNames(std::vector<std::string>()),
446  tableDescriptions(std::vector<std::vector<std::string> >()),
447  typeIds(std::vector<std::string>()),
448  typeSchemas(std::vector<std::string>()),
449  typeLabels(std::vector<std::string>()),
450  properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
451  additionalInfo(std::vector<std::map<std::string, std::string> >()),
452  sizes(std::vector<int64_t>()),
453  fullSizes(std::vector<int64_t>()),
454  joinSizes(std::vector<double>()),
455  totalSize(int64_t()),
456  totalFullSize(int64_t()),
457  info(std::map<std::string, std::string>())
458  {
459  }
460 
464  std::string tableName;
465 
480  std::vector<std::string> tableNames;
481 
507  std::vector<std::vector<std::string> > tableDescriptions;
508 
512  std::vector<std::string> typeIds;
513 
517  std::vector<std::string> typeSchemas;
518 
522  std::vector<std::string> typeLabels;
523 
527  std::vector<std::map<std::string, std::vector<std::string> > > properties;
528 
785  std::vector<std::map<std::string, std::string> > additionalInfo;
786 
793  std::vector<int64_t> sizes;
794 
801  std::vector<int64_t> fullSizes;
802 
814  std::vector<double> joinSizes;
815 
821  int64_t totalSize;
822 
828  int64_t totalFullSize;
829 
833  std::map<std::string, std::string> info;
834  };
835 } // end namespace gpudb
836 
837 namespace avro
838 {
839  template<> struct codec_traits<gpudb::ShowTableResponse>
840  {
841  static void encode(Encoder& e, const gpudb::ShowTableResponse& v)
842  {
843  ::avro::encode(e, v.tableName);
844  ::avro::encode(e, v.tableNames);
845  ::avro::encode(e, v.tableDescriptions);
846  ::avro::encode(e, v.typeIds);
847  ::avro::encode(e, v.typeSchemas);
848  ::avro::encode(e, v.typeLabels);
849  ::avro::encode(e, v.properties);
850  ::avro::encode(e, v.additionalInfo);
851  ::avro::encode(e, v.sizes);
852  ::avro::encode(e, v.fullSizes);
853  ::avro::encode(e, v.joinSizes);
854  ::avro::encode(e, v.totalSize);
855  ::avro::encode(e, v.totalFullSize);
856  ::avro::encode(e, v.info);
857  }
858 
859  static void decode(Decoder& d, gpudb::ShowTableResponse& v)
860  {
861  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
862  {
863  const std::vector<size_t> fo = rd->fieldOrder();
864 
865  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
866  {
867  switch (*it)
868  {
869  case 0:
870  ::avro::decode(d, v.tableName);
871  break;
872 
873  case 1:
874  ::avro::decode(d, v.tableNames);
875  break;
876 
877  case 2:
878  ::avro::decode(d, v.tableDescriptions);
879  break;
880 
881  case 3:
882  ::avro::decode(d, v.typeIds);
883  break;
884 
885  case 4:
886  ::avro::decode(d, v.typeSchemas);
887  break;
888 
889  case 5:
890  ::avro::decode(d, v.typeLabels);
891  break;
892 
893  case 6:
894  ::avro::decode(d, v.properties);
895  break;
896 
897  case 7:
898  ::avro::decode(d, v.additionalInfo);
899  break;
900 
901  case 8:
902  ::avro::decode(d, v.sizes);
903  break;
904 
905  case 9:
906  ::avro::decode(d, v.fullSizes);
907  break;
908 
909  case 10:
910  ::avro::decode(d, v.joinSizes);
911  break;
912 
913  case 11:
914  ::avro::decode(d, v.totalSize);
915  break;
916 
917  case 12:
918  ::avro::decode(d, v.totalFullSize);
919  break;
920 
921  case 13:
922  ::avro::decode(d, v.info);
923  break;
924 
925  default:
926  break;
927  }
928  }
929  }
930  else
931  {
932  ::avro::decode(d, v.tableName);
933  ::avro::decode(d, v.tableNames);
934  ::avro::decode(d, v.tableDescriptions);
935  ::avro::decode(d, v.typeIds);
936  ::avro::decode(d, v.typeSchemas);
937  ::avro::decode(d, v.typeLabels);
938  ::avro::decode(d, v.properties);
939  ::avro::decode(d, v.additionalInfo);
940  ::avro::decode(d, v.sizes);
941  ::avro::decode(d, v.fullSizes);
942  ::avro::decode(d, v.joinSizes);
943  ::avro::decode(d, v.totalSize);
944  ::avro::decode(d, v.totalFullSize);
945  ::avro::decode(d, v.info);
946  }
947  }
948  };
949 } // end namespace avro
950 
951 #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:814
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in tableNames.
Definition: show_table.h:785
std::vector< std::string > typeLabels
Type labels of the respective tables in tableNames.
Definition: show_table.h:522
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:801
std::string tableName
Value of tableName.
Definition: show_table.h:464
std::map< std::string, std::string > info
Additional information.
Definition: show_table.h:833
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:243
int64_t totalSize
If get_sizes is true, the sum of the elements of sizes.
Definition: show_table.h:821
std::vector< std::string > typeSchemas
Type schemas of the respective tables in tableNames.
Definition: show_table.h:517
std::vector< std::map< std::string, std::vector< std::string > > > properties
Property maps of the respective tables in tableNames.
Definition: show_table.h:527
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:507
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
Definition: show_table.h:443
std::string tableName
Name of the table for which to retrieve the information, in [ schema_name. ]table_name format,...
Definition: show_table.h:256
std::map< std::string, std::string > options
Optional parameters.
Definition: show_table.h:386
int64_t totalFullSize
If get_sizes is true, the sum of the elements of fullSizes (same value as totalSize).
Definition: show_table.h:828
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:480
std::vector< std::string > typeIds
Type IDs of the respective tables in tableNames.
Definition: show_table.h:512
A set of results returned by GPUdb::showTable.
Definition: show_table.h:438
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:793