6 #ifndef __CREATE_DATASINK_H__ 7 #define __CREATE_DATASINK_H__ 28 options(std::map<std::string, std::string>())
329 CreateDatasinkRequest(
const std::string& name_,
const std::string& destination_,
const std::map<std::string, std::string>& options_):
549 template<>
struct codec_traits<
gpudb::CreateDatasinkRequest>
553 ::avro::encode(e, v.
name);
560 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
562 const std::vector<size_t> fo = rd->fieldOrder();
564 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
569 ::avro::decode(d, v.
name);
587 ::avro::decode(d, v.
name);
609 info(std::map<std::string, std::string>())
621 std::map<std::string, std::string>
info;
627 template<>
struct codec_traits<
gpudb::CreateDatasinkResponse>
631 ::avro::encode(e, v.
name);
632 ::avro::encode(e, v.
info);
637 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
639 const std::vector<size_t> fo = rd->fieldOrder();
641 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
646 ::avro::decode(d, v.
name);
650 ::avro::decode(d, v.
info);
660 ::avro::decode(d, v.
name);
661 ::avro::decode(d, v.
info);
667 #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.