6 #ifndef __SHOW_RESOURCE_GROUPS_H__ 7 #define __SHOW_RESOURCE_GROUPS_H__ 26 names(std::vector<std::string>()),
27 options(std::map<std::string, std::string>())
167 template<>
struct codec_traits<
gpudb::ShowResourceGroupsRequest>
171 ::avro::encode(e, v.
names);
177 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
179 const std::vector<size_t> fo = rd->fieldOrder();
181 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
186 ::avro::decode(d, v.
names);
200 ::avro::decode(d, v.
names);
221 groups(std::vector<std::map<std::string, std::string> >()),
222 rankUsage(std::map<std::string, std::string>()),
223 info(std::map<std::string, std::string>())
230 std::vector<std::map<std::string, std::string> >
groups;
242 std::map<std::string, std::string>
info;
248 template<>
struct codec_traits<
gpudb::ShowResourceGroupsResponse>
252 ::avro::encode(e, v.
groups);
254 ::avro::encode(e, v.
info);
259 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
261 const std::vector<size_t> fo = rd->fieldOrder();
263 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
268 ::avro::decode(d, v.
groups);
276 ::avro::decode(d, v.
info);
286 ::avro::decode(d, v.
groups);
288 ::avro::decode(d, v.
info);
294 #endif // __SHOW_RESOURCE_GROUPS_H__ std::map< std::string, std::string > info
Additional information.
std::vector< std::map< std::string, std::string > > groups
Map of resource group information.
A set of results returned by GPUdb::showResourceGroups.
std::vector< std::string > names
List of names of groups to be shown.
ShowResourceGroupsResponse()
Constructs a ShowResourceGroupsResponse object with default parameters.
std::map< std::string, std::string > rankUsage
Tier usage across ranks.
ShowResourceGroupsRequest()
Constructs a ShowResourceGroupsRequest object with default parameters.
A set of parameters for GPUdb::showResourceGroups.
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
Optional parameters.