6 #ifndef __AGGREGATE_CONVEX_HULL_H__
7 #define __AGGREGATE_CONVEX_HULL_H__
30 options(std::map<std::string, std::string>())
50 AggregateConvexHullRequest(
const std::string& tableName_,
const std::string& xColumnName_,
const std::string& yColumnName_,
const std::map<std::string, std::string>& options_):
61 std::map<std::string, std::string>
options;
67 template<>
struct codec_traits<gpudb::AggregateConvexHullRequest>
79 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81 const std::vector<size_t> fo = rd->fieldOrder();
83 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
137 xVector(std::vector<double>()),
138 yVector(std::vector<double>()),
141 info(std::map<std::string, std::string>())
149 std::map<std::string, std::string>
info;
155 template<>
struct codec_traits<gpudb::AggregateConvexHullResponse>
161 ::avro::encode(e, v.
count);
163 ::avro::encode(e, v.
info);
168 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
170 const std::vector<size_t> fo = rd->fieldOrder();
172 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
185 ::avro::decode(d, v.
count);
193 ::avro::decode(d, v.
info);
205 ::avro::decode(d, v.
count);
207 ::avro::decode(d, v.
info);
std::vector< double > yVector
AggregateConvexHullResponse()
Constructs an AggregateConvexHullResponse object with default parameter values.
std::vector< double > xVector
std::map< std::string, std::string > info
AggregateConvexHullRequest(const std::string &tableName_, const std::string &xColumnName_, const std::string &yColumnName_, const std::map< std::string, std::string > &options_)
Constructs an AggregateConvexHullRequest object with the specified parameters.
A set of input parameters for const.
A set of output parameters for const.
AggregateConvexHullRequest()
Constructs an AggregateConvexHullRequest object with default parameter values.
std::map< std::string, std::string > options