GPUdb C++ API  Version 7.2.2.4
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 
194  ShowTableRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
195  tableName( tableName_ ),
196  options( options_ )
197  {
198  }
199 
207  std::string tableName;
208 
303  std::map<std::string, std::string> options;
304  };
305 } // end namespace gpudb
306 
307 namespace avro
308 {
309  template<> struct codec_traits<gpudb::ShowTableRequest>
310  {
311  static void encode(Encoder& e, const gpudb::ShowTableRequest& v)
312  {
313  ::avro::encode(e, v.tableName);
314  ::avro::encode(e, v.options);
315  }
316 
317  static void decode(Decoder& d, gpudb::ShowTableRequest& v)
318  {
319  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
320  {
321  const std::vector<size_t> fo = rd->fieldOrder();
322 
323  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
324  {
325  switch (*it)
326  {
327  case 0:
328  ::avro::decode(d, v.tableName);
329  break;
330 
331  case 1:
332  ::avro::decode(d, v.options);
333  break;
334 
335  default:
336  break;
337  }
338  }
339  }
340  else
341  {
342  ::avro::decode(d, v.tableName);
343  ::avro::decode(d, v.options);
344  }
345  }
346  };
347 } // end namespace avro
348 
349 namespace gpudb
350 {
356  {
361  tableName(std::string()),
362  tableNames(std::vector<std::string>()),
363  tableDescriptions(std::vector<std::vector<std::string> >()),
364  typeIds(std::vector<std::string>()),
365  typeSchemas(std::vector<std::string>()),
366  typeLabels(std::vector<std::string>()),
367  properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
368  additionalInfo(std::vector<std::map<std::string, std::string> >()),
369  sizes(std::vector<int64_t>()),
370  fullSizes(std::vector<int64_t>()),
371  joinSizes(std::vector<double>()),
372  totalSize(int64_t()),
373  totalFullSize(int64_t()),
374  info(std::map<std::string, std::string>())
375  {
376  }
377 
381  std::string tableName;
382 
397  std::vector<std::string> tableNames;
398 
424  std::vector<std::vector<std::string> > tableDescriptions;
425 
429  std::vector<std::string> typeIds;
430 
434  std::vector<std::string> typeSchemas;
435 
439  std::vector<std::string> typeLabels;
440 
444  std::vector<std::map<std::string, std::vector<std::string> > > properties;
445 
667  std::vector<std::map<std::string, std::string> > additionalInfo;
668 
675  std::vector<int64_t> sizes;
676 
683  std::vector<int64_t> fullSizes;
684 
696  std::vector<double> joinSizes;
697 
703  int64_t totalSize;
704 
710  int64_t totalFullSize;
711 
715  std::map<std::string, std::string> info;
716  };
717 } // end namespace gpudb
718 
719 namespace avro
720 {
721  template<> struct codec_traits<gpudb::ShowTableResponse>
722  {
723  static void encode(Encoder& e, const gpudb::ShowTableResponse& v)
724  {
725  ::avro::encode(e, v.tableName);
726  ::avro::encode(e, v.tableNames);
727  ::avro::encode(e, v.tableDescriptions);
728  ::avro::encode(e, v.typeIds);
729  ::avro::encode(e, v.typeSchemas);
730  ::avro::encode(e, v.typeLabels);
731  ::avro::encode(e, v.properties);
732  ::avro::encode(e, v.additionalInfo);
733  ::avro::encode(e, v.sizes);
734  ::avro::encode(e, v.fullSizes);
735  ::avro::encode(e, v.joinSizes);
736  ::avro::encode(e, v.totalSize);
737  ::avro::encode(e, v.totalFullSize);
738  ::avro::encode(e, v.info);
739  }
740 
741  static void decode(Decoder& d, gpudb::ShowTableResponse& v)
742  {
743  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
744  {
745  const std::vector<size_t> fo = rd->fieldOrder();
746 
747  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
748  {
749  switch (*it)
750  {
751  case 0:
752  ::avro::decode(d, v.tableName);
753  break;
754 
755  case 1:
756  ::avro::decode(d, v.tableNames);
757  break;
758 
759  case 2:
760  ::avro::decode(d, v.tableDescriptions);
761  break;
762 
763  case 3:
764  ::avro::decode(d, v.typeIds);
765  break;
766 
767  case 4:
768  ::avro::decode(d, v.typeSchemas);
769  break;
770 
771  case 5:
772  ::avro::decode(d, v.typeLabels);
773  break;
774 
775  case 6:
776  ::avro::decode(d, v.properties);
777  break;
778 
779  case 7:
780  ::avro::decode(d, v.additionalInfo);
781  break;
782 
783  case 8:
784  ::avro::decode(d, v.sizes);
785  break;
786 
787  case 9:
788  ::avro::decode(d, v.fullSizes);
789  break;
790 
791  case 10:
792  ::avro::decode(d, v.joinSizes);
793  break;
794 
795  case 11:
796  ::avro::decode(d, v.totalSize);
797  break;
798 
799  case 12:
800  ::avro::decode(d, v.totalFullSize);
801  break;
802 
803  case 13:
804  ::avro::decode(d, v.info);
805  break;
806 
807  default:
808  break;
809  }
810  }
811  }
812  else
813  {
814  ::avro::decode(d, v.tableName);
815  ::avro::decode(d, v.tableNames);
816  ::avro::decode(d, v.tableDescriptions);
817  ::avro::decode(d, v.typeIds);
818  ::avro::decode(d, v.typeSchemas);
819  ::avro::decode(d, v.typeLabels);
820  ::avro::decode(d, v.properties);
821  ::avro::decode(d, v.additionalInfo);
822  ::avro::decode(d, v.sizes);
823  ::avro::decode(d, v.fullSizes);
824  ::avro::decode(d, v.joinSizes);
825  ::avro::decode(d, v.totalSize);
826  ::avro::decode(d, v.totalFullSize);
827  ::avro::decode(d, v.info);
828  }
829  }
830  };
831 } // end namespace avro
832 
833 #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:696
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in tableNames.
Definition: show_table.h:667
std::vector< std::string > typeLabels
Type labels of the respective tables in tableNames.
Definition: show_table.h:439
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:683
std::string tableName
Value of tableName.
Definition: show_table.h:381
std::map< std::string, std::string > info
Additional information.
Definition: show_table.h:715
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:194
int64_t totalSize
If get_sizes is true, the sum of the elements of sizes.
Definition: show_table.h:703
std::vector< std::string > typeSchemas
Type schemas of the respective tables in tableNames.
Definition: show_table.h:434
std::vector< std::map< std::string, std::vector< std::string > > > properties
Property maps of the respective tables in tableNames.
Definition: show_table.h:444
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:424
ShowTableResponse()
Constructs a ShowTableResponse object with default parameters.
Definition: show_table.h:360
std::string tableName
Name of the table for which to retrieve the information, in [ schema_name. ]table_name format,...
Definition: show_table.h:207
std::map< std::string, std::string > options
Optional parameters.
Definition: show_table.h:303
int64_t totalFullSize
If get_sizes is true, the sum of the elements of fullSizes (same value as totalSize).
Definition: show_table.h:710
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:397
std::vector< std::string > typeIds
Type ids of the respective tables in tableNames.
Definition: show_table.h:429
A set of results returned by GPUdb::showTable.
Definition: show_table.h:355
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:675