6 #ifndef __SHOW_DATASOURCE_H__
7 #define __SHOW_DATASOURCE_H__
29 options(std::map<std::string, std::string>())
52 std::map<std::string, std::string>
options;
58 template<>
struct codec_traits<gpudb::ShowDatasourceRequest>
62 ::avro::encode(e, v.
name);
68 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70 const std::vector<size_t> fo = rd->fieldOrder();
72 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
77 ::avro::decode(d, v.
name);
91 ::avro::decode(d, v.
name);
119 additionalInfo(std::vector<std::map<std::string, std::string> >()),
120 info(std::map<std::string, std::string>())
127 std::map<std::string, std::string>
info;
133 template<>
struct codec_traits<gpudb::ShowDatasourceResponse>
140 ::avro::encode(e, v.
info);
145 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
147 const std::vector<size_t> fo = rd->fieldOrder();
149 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166 ::avro::decode(d, v.
info);
179 ::avro::decode(d, v.
info);
std::vector< std::map< std::string, std::string > > additionalInfo
ShowDatasourceResponse()
Constructs a ShowDatasourceResponse object with default parameter values.
std::vector< std::string > storageProviderTypes
ShowDatasourceRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a ShowDatasourceRequest object with the specified parameters.
std::map< std::string, std::string > info
std::vector< std::string > datasourceNames
ShowDatasourceRequest()
Constructs a ShowDatasourceRequest object with default parameter values.
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > options