6 #ifndef __AGGREGATE_HISTOGRAM_H__
7 #define __AGGREGATE_HISTOGRAM_H__
44 options(std::map<std::string, std::string>())
75 AggregateHistogramRequest(
const std::string& tableName_,
const std::string& columnName_,
const double start_,
const double end_,
const double interval_,
const std::map<std::string, std::string>& options_):
90 std::map<std::string, std::string>
options;
96 template<>
struct codec_traits<gpudb::AggregateHistogramRequest>
102 ::avro::encode(e, v.
start);
103 ::avro::encode(e, v.
end);
110 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
112 const std::vector<size_t> fo = rd->fieldOrder();
114 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
127 ::avro::decode(d, v.
start);
131 ::avro::decode(d, v.
end);
151 ::avro::decode(d, v.
start);
152 ::avro::decode(d, v.
end);
190 counts(std::vector<double>()),
193 info(std::map<std::string, std::string>())
200 std::map<std::string, std::string>
info;
206 template<>
struct codec_traits<gpudb::AggregateHistogramResponse>
210 ::avro::encode(e, v.
counts);
211 ::avro::encode(e, v.
start);
212 ::avro::encode(e, v.
end);
213 ::avro::encode(e, v.
info);
218 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
220 const std::vector<size_t> fo = rd->fieldOrder();
222 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
227 ::avro::decode(d, v.
counts);
231 ::avro::decode(d, v.
start);
235 ::avro::decode(d, v.
end);
239 ::avro::decode(d, v.
info);
249 ::avro::decode(d, v.
counts);
250 ::avro::decode(d, v.
start);
251 ::avro::decode(d, v.
end);
252 ::avro::decode(d, v.
info);
AggregateHistogramRequest()
Constructs an AggregateHistogramRequest object with default parameter values.
std::map< std::string, std::string > options
AggregateHistogramRequest(const std::string &tableName_, const std::string &columnName_, const double start_, const double end_, const double interval_, const std::map< std::string, std::string > &options_)
Constructs an AggregateHistogramRequest object with the specified parameters.
AggregateHistogramResponse()
Constructs an AggregateHistogramResponse object with default parameter values.
A set of output parameters for const.
A set of input parameters for const.
std::vector< double > counts
std::map< std::string, std::string > info