6 #ifndef __CREATE_DATASOURCE_H__ 7 #define __CREATE_DATASOURCE_H__ 30 options(std::map<std::string, std::string>())
328 CreateDatasourceRequest(
const std::string& name_,
const std::string& location_,
const std::string& userName_,
const std::string& password_,
const std::map<std::string, std::string>& options_):
561 template<>
struct codec_traits<
gpudb::CreateDatasourceRequest>
565 ::avro::encode(e, v.
name);
574 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
576 const std::vector<size_t> fo = rd->fieldOrder();
578 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
583 ::avro::decode(d, v.
name);
609 ::avro::decode(d, v.
name);
634 info(std::map<std::string, std::string>())
646 std::map<std::string, std::string>
info;
652 template<>
struct codec_traits<
gpudb::CreateDatasourceResponse>
656 ::avro::encode(e, v.
name);
657 ::avro::encode(e, v.
info);
662 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
664 const std::vector<size_t> fo = rd->fieldOrder();
666 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
671 ::avro::decode(d, v.
name);
675 ::avro::decode(d, v.
info);
685 ::avro::decode(d, v.
name);
686 ::avro::decode(d, v.
info);
692 #endif // __CREATE_DATASOURCE_H__ A set of parameters for GPUdb::createDatasource.
A set of results returned by GPUdb::createDatasource.
std::map< std::string, std::string > info
Additional information.
std::string location
Location of the remote storage in 'storage_provider_type://[storage_path[:storage_port]]' format.
CreateDatasourceRequest()
Constructs a CreateDatasourceRequest object with default parameters.
CreateDatasourceRequest(const std::string &name_, const std::string &location_, const std::string &userName_, const std::string &password_, const std::map< std::string, std::string > &options_)
Constructs a CreateDatasourceRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string userName
Name of the remote system user; may be an empty string.
std::string name
Value of name.
CreateDatasourceResponse()
Constructs a CreateDatasourceResponse object with default parameters.
std::string password
Password for the remote system user; may be an empty string.
std::string name
Name of the data source to be created.