6 #ifndef __AGGREGATE_CONVEX_HULL_H__ 7 #define __AGGREGATE_CONVEX_HULL_H__ 29 options(std::map<std::string, std::string>())
52 AggregateConvexHullRequest(
const std::string& tableName_,
const std::string& xColumnName_,
const std::string& yColumnName_,
const std::map<std::string, std::string>& options_):
83 std::map<std::string, std::string>
options;
89 template<>
struct codec_traits<
gpudb::AggregateConvexHullRequest>
101 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
103 const std::vector<size_t> fo = rd->fieldOrder();
105 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
155 xVector(std::vector<double>()),
156 yVector(std::vector<double>()),
159 info(std::map<std::string, std::string>())
183 std::map<std::string, std::string>
info;
189 template<>
struct codec_traits<
gpudb::AggregateConvexHullResponse>
195 ::avro::encode(e, v.
count);
197 ::avro::encode(e, v.
info);
202 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
204 const std::vector<size_t> fo = rd->fieldOrder();
206 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
219 ::avro::decode(d, v.
count);
227 ::avro::decode(d, v.
info);
239 ::avro::decode(d, v.
count);
241 ::avro::decode(d, v.
info);
247 #endif // __AGGREGATE_CONVEX_HULL_H__ int32_t count
Count of the number of points in the convex set.
std::vector< double > yVector
Array of y coordinates of the resulting convex set.
std::string tableName
Name of table on which the operation will be performed.
std::string yColumnName
Name of the column containing the y coordinates of the points for the operation being performed.
AggregateConvexHullResponse()
Constructs an AggregateConvexHullResponse object with default parameters.
std::vector< double > xVector
Array of x coordinates of the resulting convex set.
std::string xColumnName
Name of the column containing the x coordinates of the points for the operation being performed.
std::map< std::string, std::string > info
Additional information.
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 parameters for GPUdb::aggregateConvexHull.
A set of results returned by GPUdb::aggregateConvexHull.
AggregateConvexHullRequest()
Constructs an AggregateConvexHullRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.