6 #ifndef __SHOW_STATISTICS_H__
7 #define __SHOW_STATISTICS_H__
27 options(std::map<std::string, std::string>())
41 ShowStatisticsRequest(
const std::vector<std::string>& tableNames_,
const std::map<std::string, std::string>& options_):
48 std::map<std::string, std::string>
options;
54 template<>
struct codec_traits<gpudb::ShowStatisticsRequest>
64 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
66 const std::vector<size_t> fo = rd->fieldOrder();
68 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
112 stastisticsMap(std::vector<std::vector<std::map<std::string, std::string> > >()),
113 info(std::map<std::string, std::string>())
119 std::map<std::string, std::string>
info;
125 template<>
struct codec_traits<gpudb::ShowStatisticsResponse>
131 ::avro::encode(e, v.
info);
136 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
138 const std::vector<size_t> fo = rd->fieldOrder();
140 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
153 ::avro::decode(d, v.
info);
165 ::avro::decode(d, v.
info);
A set of input parameters for const.
ShowStatisticsRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowStatisticsRequest object with the specified parameters.
std::vector< std::string > tableNames
std::vector< std::vector< std::map< std::string, std::string > > > stastisticsMap
ShowStatisticsRequest()
Constructs a ShowStatisticsRequest object with default parameter values.
ShowStatisticsResponse()
Constructs a ShowStatisticsResponse object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.
std::vector< std::string > tableNames
std::map< std::string, std::string > info