6 #ifndef __SHOW_RESOURCE_GROUPS_H__
7 #define __SHOW_RESOURCE_GROUPS_H__
27 names(std::vector<std::string>()),
28 options(std::map<std::string, std::string>())
70 std::map<std::string, std::string>
options;
76 template<>
struct codec_traits<gpudb::ShowResourceGroupsRequest>
80 ::avro::encode(e, v.
names);
86 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
88 const std::vector<size_t> fo = rd->fieldOrder();
90 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
95 ::avro::decode(d, v.
names);
109 ::avro::decode(d, v.
names);
134 groups(std::vector<std::map<std::string, std::string> >()),
135 info(std::map<std::string, std::string>())
139 std::vector<std::map<std::string, std::string> >
groups;
140 std::map<std::string, std::string>
info;
146 template<>
struct codec_traits<gpudb::ShowResourceGroupsResponse>
150 ::avro::encode(e, v.
groups);
151 ::avro::encode(e, v.
info);
156 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
158 const std::vector<size_t> fo = rd->fieldOrder();
160 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
165 ::avro::decode(d, v.
groups);
169 ::avro::decode(d, v.
info);
179 ::avro::decode(d, v.
groups);
180 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
std::vector< std::map< std::string, std::string > > groups
A set of output parameters for const.
std::vector< std::string > names
ShowResourceGroupsResponse()
Constructs a ShowResourceGroupsResponse object with default parameter values.
ShowResourceGroupsRequest()
Constructs a ShowResourceGroupsRequest object with default parameter values.
A set of input parameters for const.
ShowResourceGroupsRequest(const std::vector< std::string > &names_, const std::map< std::string, std::string > &options_)
Constructs a ShowResourceGroupsRequest object with the specified parameters.
std::map< std::string, std::string > options