6 #ifndef __AGGREGATE_STATISTICS_H__
7 #define __AGGREGATE_STATISTICS_H__
65 options(std::map<std::string, std::string>())
146 AggregateStatisticsRequest(
const std::string& tableName_,
const std::string& columnName_,
const std::string& stats_,
const std::map<std::string, std::string>& options_):
163 template<>
struct codec_traits<gpudb::AggregateStatisticsRequest>
169 ::avro::encode(e, v.
stats);
175 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
177 const std::vector<size_t> fo = rd->fieldOrder();
179 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192 ::avro::decode(d, v.
stats);
208 ::avro::decode(d, v.
stats);
268 stats(std::map<std::string, double>()),
269 info(std::map<std::string, std::string>())
273 std::map<std::string, double>
stats;
274 std::map<std::string, std::string>
info;
280 template<>
struct codec_traits<gpudb::AggregateStatisticsResponse>
284 ::avro::encode(e, v.
stats);
285 ::avro::encode(e, v.
info);
290 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
292 const std::vector<size_t> fo = rd->fieldOrder();
294 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
299 ::avro::decode(d, v.
stats);
303 ::avro::decode(d, v.
info);
313 ::avro::decode(d, v.
stats);
314 ::avro::decode(d, v.
info);
AggregateStatisticsRequest()
Constructs an AggregateStatisticsRequest object with default parameter values.
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, double > stats
AggregateStatisticsResponse()
Constructs an AggregateStatisticsResponse object with default parameter values.
std::map< std::string, std::string > info
AggregateStatisticsRequest(const std::string &tableName_, const std::string &columnName_, const std::string &stats_, const std::map< std::string, std::string > &options_)
Constructs an AggregateStatisticsRequest object with the specified parameters.
std::map< std::string, std::string > options