6 #ifndef __AGGREGATE_MIN_MAX_H__
7 #define __AGGREGATE_MIN_MAX_H__
29 options(std::map<std::string, std::string>())
45 AggregateMinMaxRequest(
const std::string& tableName_,
const std::string& columnName_,
const std::map<std::string, std::string>& options_):
54 std::map<std::string, std::string>
options;
60 template<>
struct codec_traits<gpudb::AggregateMinMaxRequest>
71 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
73 const std::vector<size_t> fo = rd->fieldOrder();
75 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
126 info(std::map<std::string, std::string>())
132 std::map<std::string, std::string>
info;
138 template<>
struct codec_traits<gpudb::AggregateMinMaxResponse>
142 ::avro::encode(e, v.
min);
143 ::avro::encode(e, v.
max);
144 ::avro::encode(e, v.
info);
149 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
151 const std::vector<size_t> fo = rd->fieldOrder();
153 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158 ::avro::decode(d, v.
min);
162 ::avro::decode(d, v.
max);
166 ::avro::decode(d, v.
info);
176 ::avro::decode(d, v.
min);
177 ::avro::decode(d, v.
max);
178 ::avro::decode(d, v.
info);
std::map< std::string, std::string > options
std::map< std::string, std::string > info
AggregateMinMaxResponse()
Constructs an AggregateMinMaxResponse object with default parameter values.
AggregateMinMaxRequest(const std::string &tableName_, const std::string &columnName_, const std::map< std::string, std::string > &options_)
Constructs an AggregateMinMaxRequest object with the specified parameters.
AggregateMinMaxRequest()
Constructs an AggregateMinMaxRequest object with default parameter values.
A set of input parameters for const.
A set of output parameters for const.