6 #ifndef __CREATE_DATASINK_H__
7 #define __CREATE_DATASINK_H__
31 options(std::map<std::string, std::string>())
218 CreateDatasinkRequest(
const std::string& name_,
const std::string& destination_,
const std::map<std::string, std::string>& options_):
233 template<>
struct codec_traits<gpudb::CreateDatasinkRequest>
237 ::avro::encode(e, v.
name);
244 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
246 const std::vector<size_t> fo = rd->fieldOrder();
248 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
253 ::avro::decode(d, v.
name);
271 ::avro::decode(d, v.
name);
300 info(std::map<std::string, std::string>())
305 std::map<std::string, std::string>
info;
311 template<>
struct codec_traits<gpudb::CreateDatasinkResponse>
315 ::avro::encode(e, v.
name);
316 ::avro::encode(e, v.
info);
321 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
323 const std::vector<size_t> fo = rd->fieldOrder();
325 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
330 ::avro::decode(d, v.
name);
334 ::avro::decode(d, v.
info);
344 ::avro::decode(d, v.
name);
345 ::avro::decode(d, v.
info);
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.
A set of input parameters for const.
A set of output parameters for const.
CreateDatasinkRequest()
Constructs a CreateDatasinkRequest object with default parameter values.
std::map< std::string, std::string > info
CreateDatasinkResponse()
Constructs a CreateDatasinkResponse object with default parameter values.
std::map< std::string, std::string > options