6 #ifndef __SHOW_STATISTICS_H__ 7 #define __SHOW_STATISTICS_H__ 25 options(std::map<std::string, std::string>())
68 ShowStatisticsRequest(
const std::vector<std::string>& tableNames_,
const std::map<std::string, std::string>& options_):
111 template<>
struct codec_traits<
gpudb::ShowStatisticsRequest>
121 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
123 const std::vector<size_t> fo = rd->fieldOrder();
125 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
165 stastisticsMap(std::vector<std::vector<std::map<std::string, std::string> > >()),
166 info(std::map<std::string, std::string>())
184 std::map<std::string, std::string>
info;
190 template<>
struct codec_traits<
gpudb::ShowStatisticsResponse>
196 ::avro::encode(e, v.
info);
201 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
203 const std::vector<size_t> fo = rd->fieldOrder();
205 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
218 ::avro::decode(d, v.
info);
230 ::avro::decode(d, v.
info);
236 #endif // __SHOW_STATISTICS_H__ A set of parameters for GPUdb::showStatistics.
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
Value of tableNames.
std::vector< std::vector< std::map< std::string, std::string > > > stastisticsMap
A list of maps which contain the column statistics of the table tableNames.
ShowStatisticsRequest()
Constructs a ShowStatisticsRequest object with default parameters.
ShowStatisticsResponse()
Constructs a ShowStatisticsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showStatistics.
std::vector< std::string > tableNames
Names of tables whose metadata will be fetched, each in [ schema_name. ]table_name format,...
std::map< std::string, std::string > info
Additional information.