6 #ifndef __SHOW_RESOURCE_STATISTICS_H__ 7 #define __SHOW_RESOURCE_STATISTICS_H__ 27 options(std::map<std::string, std::string>())
46 std::map<std::string, std::string>
options;
52 template<>
struct codec_traits<
gpudb::ShowResourceStatisticsRequest>
61 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
63 const std::vector<size_t> fo = rd->fieldOrder();
65 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
101 info(std::map<std::string, std::string>())
113 std::map<std::string, std::string>
info;
119 template<>
struct codec_traits<
gpudb::ShowResourceStatisticsResponse>
124 ::avro::encode(e, v.
info);
129 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
131 const std::vector<size_t> fo = rd->fieldOrder();
133 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
142 ::avro::decode(d, v.
info);
153 ::avro::decode(d, v.
info);
159 #endif // __SHOW_RESOURCE_STATISTICS_H__ A set of parameters for GPUdb::showResourceStatistics.
std::map< std::string, std::string > options
Optional parameters.
ShowResourceStatisticsRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowResourceStatisticsRequest object with the specified parameters.
ShowResourceStatisticsResponse()
Constructs a ShowResourceStatisticsResponse object with default parameters.
std::map< std::string, std::string > statisticsMap
Map of resource statistics.
std::map< std::string, std::string > info
Additional information.
ShowResourceStatisticsRequest()
Constructs a ShowResourceStatisticsRequest object with default parameters.
A set of results returned by GPUdb::showResourceStatistics.