GPUdb C++ API  Version 7.2.3.0
create_catalog.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 __CREATE_CATALOG_H__
7 #define __CREATE_CATALOG_H__
8 
9 namespace gpudb
10 {
20  {
25  name(std::string()),
26  tableFormat(std::string()),
27  location(std::string()),
28  type(std::string()),
29  credential(std::string()),
30  datasource(std::string()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
88  CreateCatalogRequest(const std::string& name_, const std::string& tableFormat_, const std::string& location_, const std::string& type_, const std::string& credential_, const std::string& datasource_, const std::map<std::string, std::string>& options_):
89  name( name_ ),
90  tableFormat( tableFormat_ ),
91  location( location_ ),
92  type( type_ ),
93  credential( credential_ ),
94  datasource( datasource_ ),
95  options( options_ )
96  {
97  }
98 
102  std::string name;
103 
107  std::string tableFormat;
108 
112  std::string location;
113 
118  std::string type;
119 
124  std::string credential;
125 
129  std::string datasource;
130 
162  std::map<std::string, std::string> options;
163  };
164 } // end namespace gpudb
165 
166 namespace avro
167 {
168  template<> struct codec_traits<gpudb::CreateCatalogRequest>
169  {
170  static void encode(Encoder& e, const gpudb::CreateCatalogRequest& v)
171  {
172  ::avro::encode(e, v.name);
173  ::avro::encode(e, v.tableFormat);
174  ::avro::encode(e, v.location);
175  ::avro::encode(e, v.type);
176  ::avro::encode(e, v.credential);
177  ::avro::encode(e, v.datasource);
178  ::avro::encode(e, v.options);
179  }
180 
181  static void decode(Decoder& d, gpudb::CreateCatalogRequest& v)
182  {
183  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
184  {
185  const std::vector<size_t> fo = rd->fieldOrder();
186 
187  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
188  {
189  switch (*it)
190  {
191  case 0:
192  ::avro::decode(d, v.name);
193  break;
194 
195  case 1:
196  ::avro::decode(d, v.tableFormat);
197  break;
198 
199  case 2:
200  ::avro::decode(d, v.location);
201  break;
202 
203  case 3:
204  ::avro::decode(d, v.type);
205  break;
206 
207  case 4:
208  ::avro::decode(d, v.credential);
209  break;
210 
211  case 5:
212  ::avro::decode(d, v.datasource);
213  break;
214 
215  case 6:
216  ::avro::decode(d, v.options);
217  break;
218 
219  default:
220  break;
221  }
222  }
223  }
224  else
225  {
226  ::avro::decode(d, v.name);
227  ::avro::decode(d, v.tableFormat);
228  ::avro::decode(d, v.location);
229  ::avro::decode(d, v.type);
230  ::avro::decode(d, v.credential);
231  ::avro::decode(d, v.datasource);
232  ::avro::decode(d, v.options);
233  }
234  }
235  };
236 } // end namespace avro
237 
238 namespace gpudb
239 {
246  {
251  name(std::string()),
252  info(std::map<std::string, std::string>())
253  {
254  }
255 
259  std::string name;
260 
264  std::map<std::string, std::string> info;
265  };
266 } // end namespace gpudb
267 
268 namespace avro
269 {
270  template<> struct codec_traits<gpudb::CreateCatalogResponse>
271  {
272  static void encode(Encoder& e, const gpudb::CreateCatalogResponse& v)
273  {
274  ::avro::encode(e, v.name);
275  ::avro::encode(e, v.info);
276  }
277 
278  static void decode(Decoder& d, gpudb::CreateCatalogResponse& v)
279  {
280  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
281  {
282  const std::vector<size_t> fo = rd->fieldOrder();
283 
284  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
285  {
286  switch (*it)
287  {
288  case 0:
289  ::avro::decode(d, v.name);
290  break;
291 
292  case 1:
293  ::avro::decode(d, v.info);
294  break;
295 
296  default:
297  break;
298  }
299  }
300  }
301  else
302  {
303  ::avro::decode(d, v.name);
304  ::avro::decode(d, v.info);
305  }
306  }
307  };
308 } // end namespace avro
309 
310 #endif // __CREATE_CATALOG_H__
std::string tableFormat
Table format (iceberg, hudi, deltalake)
std::string type
Type of the catalog (REST (unity, polaris, tabular), nessie, hive, glue)
std::string credential
Name of the credential object to be used in catalog.
std::string name
Name of the catalog to be created.
std::string name
Value of name.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.
std::string location
Location of the catalog in 'http[s]://[server[:port]]]' format.
CreateCatalogRequest()
Constructs a CreateCatalogRequest object with default parameters.
CreateCatalogResponse()
Constructs a CreateCatalogResponse object with default parameters.
std::string datasource
Password for the remote system user; may be an empty string.
A set of parameters for GPUdb::createCatalog.
A set of results returned by GPUdb::createCatalog.
CreateCatalogRequest(const std::string &name_, const std::string &tableFormat_, const std::string &location_, const std::string &type_, const std::string &credential_, const std::string &datasource_, const std::map< std::string, std::string > &options_)
Constructs a CreateCatalogRequest object with the specified parameters.