6 #ifndef __SHOW_DATASOURCE_H__ 7 #define __SHOW_DATASOURCE_H__ 27 options(std::map<std::string, std::string>())
59 std::map<std::string, std::string>
options;
65 template<>
struct codec_traits<
gpudb::ShowDatasourceRequest>
69 ::avro::encode(e, v.
name);
75 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
77 const std::vector<size_t> fo = rd->fieldOrder();
79 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
84 ::avro::decode(d, v.
name);
98 ::avro::decode(d, v.
name);
120 additionalInfo(std::vector<std::map<std::string, std::string> >()),
121 info(std::map<std::string, std::string>())
169 std::map<std::string, std::string>
info;
175 template<>
struct codec_traits<
gpudb::ShowDatasourceResponse>
182 ::avro::encode(e, v.
info);
187 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
189 const std::vector<size_t> fo = rd->fieldOrder();
191 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208 ::avro::decode(d, v.
info);
221 ::avro::decode(d, v.
info);
227 #endif // __SHOW_DATASOURCE_H__ std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective data sources in datasourceNames.
ShowDatasourceResponse()
Constructs a ShowDatasourceResponse object with default parameters.
std::vector< std::string > storageProviderTypes
The storage provider type of the data sources named in datasourceNames.
ShowDatasourceRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a ShowDatasourceRequest object with the specified parameters.
std::string name
Name of the data source for which to retrieve information.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > datasourceNames
The data source names.
ShowDatasourceRequest()
Constructs a ShowDatasourceRequest object with default parameters.
A set of parameters for GPUdb::showDatasource.
A set of results returned by GPUdb::showDatasource.
std::map< std::string, std::string > options
Optional parameters.