6 #ifndef __AGGREGATE_STATISTICS_BY_RANGE_H__
7 #define __AGGREGATE_STATISTICS_BY_RANGE_H__
58 options(std::map<std::string, std::string>())
108 AggregateStatisticsByRangeRequest(
const std::string& tableName_,
const std::string& selectExpression_,
const std::string& columnName_,
const std::string& valueColumnName_,
const std::string& stats_,
const double start_,
const double end_,
const double interval_,
const std::map<std::string, std::string>& options_):
135 template<>
struct codec_traits<gpudb::AggregateStatisticsByRangeRequest>
143 ::avro::encode(e, v.
stats);
144 ::avro::encode(e, v.
start);
145 ::avro::encode(e, v.
end);
152 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154 const std::vector<size_t> fo = rd->fieldOrder();
156 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177 ::avro::decode(d, v.
stats);
181 ::avro::decode(d, v.
start);
185 ::avro::decode(d, v.
end);
207 ::avro::decode(d, v.
stats);
208 ::avro::decode(d, v.
start);
209 ::avro::decode(d, v.
end);
258 stats(std::map<std::string, std::vector<double> >()),
259 info(std::map<std::string, std::string>())
263 std::map<std::string, std::vector<double> >
stats;
264 std::map<std::string, std::string>
info;
270 template<>
struct codec_traits<gpudb::AggregateStatisticsByRangeResponse>
274 ::avro::encode(e, v.
stats);
275 ::avro::encode(e, v.
info);
280 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
282 const std::vector<size_t> fo = rd->fieldOrder();
284 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
289 ::avro::decode(d, v.
stats);
293 ::avro::decode(d, v.
info);
303 ::avro::decode(d, v.
stats);
304 ::avro::decode(d, v.
info);
AggregateStatisticsByRangeResponse()
Constructs an AggregateStatisticsByRangeResponse object with default parameter values.
std::string valueColumnName
std::string selectExpression
std::map< std::string, std::string > info
AggregateStatisticsByRangeRequest()
Constructs an AggregateStatisticsByRangeRequest object with default parameter values.
A set of input parameters for const.
AggregateStatisticsByRangeRequest(const std::string &tableName_, const std::string &selectExpression_, const std::string &columnName_, const std::string &valueColumnName_, const std::string &stats_, const double start_, const double end_, const double interval_, const std::map< std::string, std::string > &options_)
Constructs an AggregateStatisticsByRangeRequest object with the specified parameters.
std::map< std::string, std::vector< double > > stats
std::map< std::string, std::string > options
A set of output parameters for const.