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>())
82 std::map<std::string, std::string>
options;
88 template<>
struct codec_traits<gpudb::ShowResourceGroupsRequest>
92 ::avro::encode(e, v.
names);
98 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
100 const std::vector<size_t> fo = rd->fieldOrder();
102 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
107 ::avro::decode(d, v.
names);
121 ::avro::decode(d, v.
names);
146 groups(std::vector<std::map<std::string, std::string> >()),
147 rankUsage(std::map<std::string, std::string>()),
148 info(std::map<std::string, std::string>())
152 std::vector<std::map<std::string, std::string> >
groups;
154 std::map<std::string, std::string>
info;
160 template<>
struct codec_traits<gpudb::ShowResourceGroupsResponse>
164 ::avro::encode(e, v.
groups);
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)
180 ::avro::decode(d, v.
groups);
188 ::avro::decode(d, v.
info);
198 ::avro::decode(d, v.
groups);
200 ::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.
std::map< std::string, std::string > rankUsage
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