6 #ifndef __SHOW_DATASINK_H__ 7 #define __SHOW_DATASINK_H__ 27 options(std::map<std::string, std::string>())
58 std::map<std::string, std::string>
options;
64 template<>
struct codec_traits<
gpudb::ShowDatasinkRequest>
68 ::avro::encode(e, v.
name);
74 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76 const std::vector<size_t> fo = rd->fieldOrder();
78 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
83 ::avro::decode(d, v.
name);
97 ::avro::decode(d, v.
name);
119 additionalInfo(std::vector<std::map<std::string, std::string> >()),
120 info(std::map<std::string, std::string>())
153 std::map<std::string, std::string>
info;
159 template<>
struct codec_traits<
gpudb::ShowDatasinkResponse>
166 ::avro::encode(e, v.
info);
171 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173 const std::vector<size_t> fo = rd->fieldOrder();
175 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192 ::avro::decode(d, v.
info);
205 ::avro::decode(d, v.
info);
211 #endif // __SHOW_DATASINK_H__ ShowDatasinkRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a ShowDatasinkRequest object with the specified parameters.
ShowDatasinkResponse()
Constructs a ShowDatasinkResponse object with default parameters.
std::vector< std::string > destinationTypes
The destination type of the data sinks named in datasinkNames.
std::string name
Name of the data sink for which to retrieve information.
std::vector< std::string > datasinkNames
The data sink names.
A set of parameters for GPUdb::showDatasink.
ShowDatasinkRequest()
Constructs a ShowDatasinkRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective data sinks in datasinkNames.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showDatasink.