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 
257  ShowTableRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
258  tableName( tableName_ ),
259  options( options_ )
260  {
261  }
262 
270  std::string tableName;
271 
410  std::map<std::string, std::string> options;
411  };
412 } // end namespace gpudb
413 
414 namespace avro
415 {
416  template<> struct codec_traits<gpudb::ShowTableRequest>
417  {
418  static void encode(Encoder& e, const gpudb::ShowTableRequest& v)
419  {
420  ::avro::encode(e, v.tableName);
421  ::avro::encode(e, v.options);
422  }
423 
424  static void decode(Decoder& d, gpudb::ShowTableRequest& v)
425  {
426  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
427  {
428  const std::vector<size_t> fo = rd->fieldOrder();
429 
430  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
431  {
432  switch (*it)
433  {
434  case 0:
435  ::avro::decode(d, v.tableName);
436  break;
437 
438  case 1:
439  ::avro::decode(d, v.options);
440  break;
441 
442  default:
443  break;
444  }
445  }
446  }
447  else
448  {
449  ::avro::decode(d, v.tableName);
450  ::avro::decode(d, v.options);
451  }
452  }
453  };
454 } // end namespace avro
455 
456 namespace gpudb
457 {
463  {
468  tableName(std::string()),
469  tableNames(std::vector<std::string>()),
470  tableDescriptions(std::vector<std::vector<std::string> >()),
471  typeIds(std::vector<std::string>()),
472  typeSchemas(std::vector<std::string>()),
473  typeLabels(std::vector<std::string>()),
474  properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
475  additionalInfo(std::vector<std::map<std::string, std::string> >()),
476  sizes(std::vector<int64_t>()),
477  fullSizes(std::vector<int64_t>()),
478  joinSizes(std::vector<double>()),
479  totalSize(int64_t()),
480  totalFullSize(int64_t()),
481  info(std::map<std::string, std::string>())
482  {
483  }
484 
488  std::string tableName;
489 
504  std::vector<std::string> tableNames;
505 
531  std::vector<std::vector<std::string> > tableDescriptions;
532 
536  std::vector<std::string> typeIds;
537 
541  std::vector<std::string> typeSchemas;
542 
546  std::vector<std::string> typeLabels;
547 
551  std::vector<std::map<std::string, std::vector<std::string> > > properties;
552 
809  std::vector<std::map<std::string, std::string> > additionalInfo;
810 
817  std::vector<int64_t> sizes;
818 
825  std::vector<int64_t> fullSizes;
826 
838  std::vector<double> joinSizes;
839 
845  int64_t totalSize;
846 
852  int64_t totalFullSize;
853 
857  std::map<std::string, std::string> info;
858  };
859 } // end namespace gpudb
860 
861 namespace avro
862 {
863  template<> struct codec_traits<gpudb::ShowTableResponse>
864  {
865  static void encode(Encoder& e, const gpudb::ShowTableResponse& v)
866  {
867  ::avro::encode(e, v.tableName);
868  ::avro::encode(e, v.tableNames);
869  ::avro::encode(e, v.tableDescriptions);
870  ::avro::encode(e, v.typeIds);
871  ::avro::encode(e, v.typeSchemas);
872  ::avro::encode(e, v.typeLabels);
873  ::avro::encode(e, v.properties);
874  ::avro::encode(e, v.additionalInfo);
875  ::avro::encode(e, v.sizes);
876  ::avro::encode(e, v.fullSizes);
877  ::avro::encode(e, v.joinSizes);
878  ::avro::encode(e, v.totalSize);
879  ::avro::encode(e, v.totalFullSize);
880  ::avro::encode(e, v.info);
881  }
882 
883  static void decode(Decoder& d, gpudb::ShowTableResponse& v)
884  {
885  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
886  {
887  const std::vector<size_t> fo = rd->fieldOrder();
888 
889  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
890  {
891  switch (*it)
892  {
893  case 0:
894  ::avro::decode(d, v.tableName);
895  break;
896 
897  case 1:
898  ::avro::decode(d, v.tableNames);
899  break;
900 
901  case 2:
902  ::avro::decode(d, v.tableDescriptions);
903  break;
904 
905  case 3:
906  ::avro::decode(d, v.typeIds);
907  break;
908 
909  case 4:
910  ::avro::decode(d, v.typeSchemas);
911  break;
912 
913  case 5:
914  ::avro::decode(d, v.typeLabels);
915  break;
916 
917  case 6:
918  ::avro::decode(d, v.properties);
919  break;
920 
921  case 7:
922  ::avro::decode(d, v.additionalInfo);
923  break;
924 
925  case 8:
926  ::avro::decode(d, v.sizes);
927  break;
928 
929  case 9:
930  ::avro::decode(d, v.fullSizes);
931  break;
932 
933  case 10:
934  ::avro::decode(d, v.joinSizes);
935  break;
936 
937  case 11:
938  ::avro::decode(d, v.totalSize);
939  break;
940 
941  case 12:
942  ::avro::decode(d, v.totalFullSize);
943  break;
944 
945  case 13:
946  ::avro::decode(d, v.info);
947  break;
948 
949  default:
950  break;
951  }
952  }
953  }
954  else
955  {
956  ::avro::decode(d, v.tableName);
957  ::avro::decode(d, v.tableNames);
958  ::avro::decode(d, v.tableDescriptions);
959  ::avro::decode(d, v.typeIds);
960  ::avro::decode(d, v.typeSchemas);
961  ::avro::decode(d, v.typeLabels);
962  ::avro::decode(d, v.properties);
963  ::avro::decode(d, v.additionalInfo);
964  ::avro::decode(d, v.sizes);
965  ::avro::decode(d, v.fullSizes);
966  ::avro::decode(d, v.joinSizes);
967  ::avro::decode(d, v.totalSize);
968  ::avro::decode(d, v.totalFullSize);
969  ::avro::decode(d, v.info);
970  }
971  }
972  };
973 } // end namespace avro
974 
975 #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:838
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in tableNames.
Definition: show_table.h:809
std::vector< std::string > typeLabels
Type labels of the respective tables in tableNames.
Definition: show_table.h:546
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:825
std::string tableName
Value of tableName.
Definition: show_table.h:488
std::map< std::string, std::string > info
Additional information.
Definition: show_table.h:857
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:257
int64_t totalSize
If get_sizes is true, the sum of the elements of sizes.
Definition: show_table.h:845
std::vector< std::string > typeSchemas
Type schemas of the respective tables in tableNames.
Definition: show_table.h:541
std::vector< std::map< std::string, std::vector< std::string > > > properties
Property maps of the respective tables in tableNames.
Definition: show_table.h:551
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:531
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
Definition: show_table.h:467
std::string tableName
Name of the table for which to retrieve the information, in [ schema_name. ]table_name format,...
Definition: show_table.h:270
std::map< std::string, std::string > options
Optional parameters.
Definition: show_table.h:410
int64_t totalFullSize
If get_sizes is true, the sum of the elements of fullSizes (same value as totalSize).
Definition: show_table.h:852
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:504
std::vector< std::string > typeIds
Type IDs of the respective tables in tableNames.
Definition: show_table.h:536
A set of results returned by GPUdb::showTable.
Definition: show_table.h:462
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:817