6 #ifndef __CREATE_DATASINK_H__ 7 #define __CREATE_DATASINK_H__ 28 options(std::map<std::string, std::string>())
306 CreateDatasinkRequest(
const std::string& name_,
const std::string& destination_,
const std::map<std::string, std::string>& options_):
511 template<>
struct codec_traits<
gpudb::CreateDatasinkRequest>
515 ::avro::encode(e, v.
name);
522 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
524 const std::vector<size_t> fo = rd->fieldOrder();
526 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
531 ::avro::decode(d, v.
name);
549 ::avro::decode(d, v.
name);
571 info(std::map<std::string, std::string>())
583 std::map<std::string, std::string>
info;
589 template<>
struct codec_traits<
gpudb::CreateDatasinkResponse>
593 ::avro::encode(e, v.
name);
594 ::avro::encode(e, v.
info);
599 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
601 const std::vector<size_t> fo = rd->fieldOrder();
603 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
608 ::avro::decode(d, v.
name);
612 ::avro::decode(d, v.
info);
622 ::avro::decode(d, v.
name);
623 ::avro::decode(d, v.
info);
629 #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.