6 #ifndef __AGGREGATE_MIN_MAX_H__ 7 #define __AGGREGATE_MIN_MAX_H__ 27 options(std::map<std::string, std::string>())
47 AggregateMinMaxRequest(
const std::string& tableName_,
const std::string& columnName_,
const std::map<std::string, std::string>& options_):
71 std::map<std::string, std::string>
options;
77 template<>
struct codec_traits<
gpudb::AggregateMinMaxRequest>
88 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
90 const std::vector<size_t> fo = rd->fieldOrder();
92 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
139 info(std::map<std::string, std::string>())
158 std::map<std::string, std::string>
info;
164 template<>
struct codec_traits<
gpudb::AggregateMinMaxResponse>
168 ::avro::encode(e, v.
min);
169 ::avro::encode(e, v.
max);
170 ::avro::encode(e, v.
info);
175 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
177 const std::vector<size_t> fo = rd->fieldOrder();
179 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
184 ::avro::decode(d, v.
min);
188 ::avro::decode(d, v.
max);
192 ::avro::decode(d, v.
info);
202 ::avro::decode(d, v.
min);
203 ::avro::decode(d, v.
max);
204 ::avro::decode(d, v.
info);
210 #endif // __AGGREGATE_MIN_MAX_H__ std::string tableName
Name of the table on which the operation will be performed.
double min
Minimum value of the columnName.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.
AggregateMinMaxResponse()
Constructs an AggregateMinMaxResponse object with default parameters.
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 parameters.
A set of parameters for GPUdb::aggregateMinMax.
A set of results returned by GPUdb::aggregateMinMax.
double max
Maximum value of the columnName.
std::string columnName
Name of a column or an expression of one or more column on which the min-max will be calculated.