6 #ifndef __COLLECT_STATISTICS_H__
7 #define __COLLECT_STATISTICS_H__
28 options(std::map<std::string, std::string>())
47 CollectStatisticsRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const std::map<std::string, std::string>& options_):
56 std::map<std::string, std::string>
options;
62 template<>
struct codec_traits<gpudb::CollectStatisticsRequest>
73 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
75 const std::vector<size_t> fo = rd->fieldOrder();
77 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
127 info(std::map<std::string, std::string>())
133 std::map<std::string, std::string>
info;
139 template<>
struct codec_traits<gpudb::CollectStatisticsResponse>
145 ::avro::encode(e, v.
info);
150 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
152 const std::vector<size_t> fo = rd->fieldOrder();
154 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
167 ::avro::decode(d, v.
info);
179 ::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