6 #ifndef __AGGREGATE_STATISTICS_H__ 7 #define __AGGREGATE_STATISTICS_H__ 86 options(std::map<std::string, std::string>())
195 AggregateStatisticsRequest(
const std::string& tableName_,
const std::string& columnName_,
const std::string& stats_,
const std::map<std::string, std::string>& options_):
298 template<>
struct codec_traits<
gpudb::AggregateStatisticsRequest>
304 ::avro::encode(e, v.
stats);
310 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
312 const std::vector<size_t> fo = rd->fieldOrder();
314 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
327 ::avro::decode(d, v.
stats);
343 ::avro::decode(d, v.
stats);
364 stats(std::map<std::string, double>()),
365 info(std::map<std::string, std::string>())
373 std::map<std::string, double>
stats;
378 std::map<std::string, std::string>
info;
384 template<>
struct codec_traits<
gpudb::AggregateStatisticsResponse>
388 ::avro::encode(e, v.
stats);
389 ::avro::encode(e, v.
info);
394 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
396 const std::vector<size_t> fo = rd->fieldOrder();
398 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
403 ::avro::decode(d, v.
stats);
407 ::avro::decode(d, v.
info);
417 ::avro::decode(d, v.
stats);
418 ::avro::decode(d, v.
info);
424 #endif // __AGGREGATE_STATISTICS_H__
AggregateStatisticsRequest()
Constructs an AggregateStatisticsRequest object with default parameters.
A set of parameters for GPUdb::aggregateStatistics.
A set of results returned by GPUdb::aggregateStatistics.
std::map< std::string, double > stats
(statistic name, double value) pairs of the requested statistics, including the total count by defaul...
AggregateStatisticsResponse()
Constructs an AggregateStatisticsResponse object with default parameters.
std::string tableName
Name of the table on which the statistics operation will be performed, in [ schema_name....
std::map< std::string, std::string > info
Additional information.
std::string columnName
Name of the primary column for which the statistics are to be calculated.
std::string stats
Comma separated list of the statistics to calculate, e.g.
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
Optional parameters.