GPUdb C++ API  Version 7.2.2.4
show_table_metadata.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_METADATA_H__
7 #define __SHOW_TABLE_METADATA_H__
8 
9 namespace gpudb
10 {
19  {
25  tableNames(std::vector<std::string>()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
44  ShowTableMetadataRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
45  tableNames( tableNames_ ),
46  options( options_ )
47  {
48  }
49 
57  std::vector<std::string> tableNames;
58 
62  std::map<std::string, std::string> options;
63  };
64 } // end namespace gpudb
65 
66 namespace avro
67 {
68  template<> struct codec_traits<gpudb::ShowTableMetadataRequest>
69  {
70  static void encode(Encoder& e, const gpudb::ShowTableMetadataRequest& v)
71  {
72  ::avro::encode(e, v.tableNames);
73  ::avro::encode(e, v.options);
74  }
75 
76  static void decode(Decoder& d, gpudb::ShowTableMetadataRequest& v)
77  {
78  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
79  {
80  const std::vector<size_t> fo = rd->fieldOrder();
81 
82  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
83  {
84  switch (*it)
85  {
86  case 0:
87  ::avro::decode(d, v.tableNames);
88  break;
89 
90  case 1:
91  ::avro::decode(d, v.options);
92  break;
93 
94  default:
95  break;
96  }
97  }
98  }
99  else
100  {
101  ::avro::decode(d, v.tableNames);
102  ::avro::decode(d, v.options);
103  }
104  }
105  };
106 } // end namespace avro
107 
108 namespace gpudb
109 {
116  {
122  tableNames(std::vector<std::string>()),
123  metadataMaps(std::vector<std::map<std::string, std::string> >()),
124  info(std::map<std::string, std::string>())
125  {
126  }
127 
132  std::vector<std::string> tableNames;
133 
140  std::vector<std::map<std::string, std::string> > metadataMaps;
141 
145  std::map<std::string, std::string> info;
146  };
147 } // end namespace gpudb
148 
149 namespace avro
150 {
151  template<> struct codec_traits<gpudb::ShowTableMetadataResponse>
152  {
153  static void encode(Encoder& e, const gpudb::ShowTableMetadataResponse& v)
154  {
155  ::avro::encode(e, v.tableNames);
156  ::avro::encode(e, v.metadataMaps);
157  ::avro::encode(e, v.info);
158  }
159 
160  static void decode(Decoder& d, gpudb::ShowTableMetadataResponse& v)
161  {
162  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
163  {
164  const std::vector<size_t> fo = rd->fieldOrder();
165 
166  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
167  {
168  switch (*it)
169  {
170  case 0:
171  ::avro::decode(d, v.tableNames);
172  break;
173 
174  case 1:
175  ::avro::decode(d, v.metadataMaps);
176  break;
177 
178  case 2:
179  ::avro::decode(d, v.info);
180  break;
181 
182  default:
183  break;
184  }
185  }
186  }
187  else
188  {
189  ::avro::decode(d, v.tableNames);
190  ::avro::decode(d, v.metadataMaps);
191  ::avro::decode(d, v.info);
192  }
193  }
194  };
195 } // end namespace avro
196 
197 #endif // __SHOW_TABLE_METADATA_H__
ShowTableMetadataRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowTableMetadataRequest object with the specified parameters.
ShowTableMetadataRequest()
Constructs a ShowTableMetadataRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::showTableMetadata.
A set of parameters for GPUdb::showTableMetadata.
ShowTableMetadataResponse()
Constructs a ShowTableMetadataResponse object with default parameters.
std::vector< std::string > tableNames
Names of tables whose metadata will be fetched, in [ schema_name.
std::vector< std::map< std::string, std::string > > metadataMaps
A list of maps which contain the metadata of the tables in the order the tables are listed in tableNa...
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > tableNames
Value of tableNames.