6 #ifndef __COLLECT_STATISTICS_H__
7 #define __COLLECT_STATISTICS_H__
28 options(std::map<std::string, std::string>())
43 CollectStatisticsRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const std::map<std::string, std::string>& options_):
52 std::map<std::string, std::string>
options;
58 template<>
struct codec_traits<gpudb::CollectStatisticsRequest>
69 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
71 const std::vector<size_t> fo = rd->fieldOrder();
73 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
123 info(std::map<std::string, std::string>())
129 std::map<std::string, std::string>
info;
135 template<>
struct codec_traits<gpudb::CollectStatisticsResponse>
141 ::avro::encode(e, v.
info);
146 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
148 const std::vector<size_t> fo = rd->fieldOrder();
150 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
163 ::avro::decode(d, v.
info);
175 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
A set of output parameters for const.
std::vector< std::string > columnNames
CollectStatisticsRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const std::map< std::string, std::string > &options_)
Constructs a CollectStatisticsRequest object with the specified parameters.
A set of input parameters for const.
CollectStatisticsRequest()
Constructs a CollectStatisticsRequest object with default parameter values.
CollectStatisticsResponse()
Constructs a CollectStatisticsResponse object with default parameter values.
std::vector< std::string > columnNames
std::map< std::string, std::string > options