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;
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>()),
208 ::avro::encode(e, v.
counts);
209 ::avro::encode(e, v.
start);
210 ::avro::encode(e, v.
end);
215 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
217 const std::vector<size_t> fo = rd->fieldOrder();
219 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
224 ::avro::decode(d, v.
counts);
228 ::avro::decode(d, v.
start);
232 ::avro::decode(d, v.
end);
242 ::avro::decode(d, v.
counts);
243 ::avro::decode(d, v.
start);
244 ::avro::decode(d, v.
end);
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 aggregateHistogram(const AggregateHistogramRequest&) const...
A set of input parameters for aggregateHistogram(const AggregateHistogramRequest&) const...
std::vector< double > counts