6 #ifndef __CREATE_CATALOG_H__ 7 #define __CREATE_CATALOG_H__ 31 options(std::map<std::string, std::string>())
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_):
168 template<>
struct codec_traits<
gpudb::CreateCatalogRequest>
172 ::avro::encode(e, v.
name);
175 ::avro::encode(e, v.
type);
183 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
185 const std::vector<size_t> fo = rd->fieldOrder();
187 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192 ::avro::decode(d, v.
name);
204 ::avro::decode(d, v.
type);
226 ::avro::decode(d, v.
name);
229 ::avro::decode(d, v.
type);
252 info(std::map<std::string, std::string>())
264 std::map<std::string, std::string>
info;
270 template<>
struct codec_traits<
gpudb::CreateCatalogResponse>
274 ::avro::encode(e, v.
name);
275 ::avro::encode(e, v.
info);
280 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
282 const std::vector<size_t> fo = rd->fieldOrder();
284 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
289 ::avro::decode(d, v.
name);
293 ::avro::decode(d, v.
info);
303 ::avro::decode(d, v.
name);
304 ::avro::decode(d, v.
info);
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.