6 #ifndef __CREATE_DATASINK_H__ 7 #define __CREATE_DATASINK_H__ 28 options(std::map<std::string, std::string>())
330 CreateDatasinkRequest(
const std::string& name_,
const std::string& destination_,
const std::map<std::string, std::string>& options_):
551 template<>
struct codec_traits<
gpudb::CreateDatasinkRequest>
555 ::avro::encode(e, v.
name);
562 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
564 const std::vector<size_t> fo = rd->fieldOrder();
566 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
571 ::avro::decode(d, v.
name);
589 ::avro::decode(d, v.
name);
611 info(std::map<std::string, std::string>())
623 std::map<std::string, std::string>
info;
629 template<>
struct codec_traits<
gpudb::CreateDatasinkResponse>
633 ::avro::encode(e, v.
name);
634 ::avro::encode(e, v.
info);
639 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
641 const std::vector<size_t> fo = rd->fieldOrder();
643 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
648 ::avro::decode(d, v.
name);
652 ::avro::decode(d, v.
info);
662 ::avro::decode(d, v.
name);
663 ::avro::decode(d, v.
info);
669 #endif // __CREATE_DATASINK_H__ CreateDatasinkRequest(const std::string &name_, const std::string &destination_, const std::map< std::string, std::string > &options_)
Constructs a CreateDatasinkRequest object with the specified parameters.
std::string name
Name of the data sink to be created.
A set of parameters for GPUdb::createDatasink.
A set of results returned by GPUdb::createDatasink.
std::string name
Value of name.
std::string destination
Destination for the output data in format 'storage_provider_type://path[:port]'.
CreateDatasinkRequest()
Constructs a CreateDatasinkRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
CreateDatasinkResponse()
Constructs a CreateDatasinkResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.