GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
aggregate_convex_hull.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __AGGREGATE_CONVEX_HULL_H__
7 #define __AGGREGATE_CONVEX_HULL_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  tableName(std::string()),
28  xColumnName(std::string()),
29  yColumnName(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
53  AggregateConvexHullRequest(const std::string& tableName_, const std::string& xColumnName_, const std::string& yColumnName_, const std::map<std::string, std::string>& options_):
54  tableName( tableName_ ),
55  xColumnName( xColumnName_ ),
56  yColumnName( yColumnName_ ),
57  options( options_ )
58  {
59  }
60 
61  std::string tableName;
62  std::string xColumnName;
63  std::string yColumnName;
64  std::map<std::string, std::string> options;
65  };
66 }
67 
68 namespace avro
69 {
70  template<> struct codec_traits<gpudb::AggregateConvexHullRequest>
71  {
72  static void encode(Encoder& e, const gpudb::AggregateConvexHullRequest& v)
73  {
74  ::avro::encode(e, v.tableName);
75  ::avro::encode(e, v.xColumnName);
76  ::avro::encode(e, v.yColumnName);
77  ::avro::encode(e, v.options);
78  }
79 
80  static void decode(Decoder& d, gpudb::AggregateConvexHullRequest& v)
81  {
82  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
83  {
84  const std::vector<size_t> fo = rd->fieldOrder();
85 
86  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
87  {
88  switch (*it)
89  {
90  case 0:
91  ::avro::decode(d, v.tableName);
92  break;
93 
94  case 1:
95  ::avro::decode(d, v.xColumnName);
96  break;
97 
98  case 2:
99  ::avro::decode(d, v.yColumnName);
100  break;
101 
102  case 3:
103  ::avro::decode(d, v.options);
104  break;
105 
106  default:
107  break;
108  }
109  }
110  }
111  else
112  {
113  ::avro::decode(d, v.tableName);
114  ::avro::decode(d, v.xColumnName);
115  ::avro::decode(d, v.yColumnName);
116  ::avro::decode(d, v.options);
117  }
118  }
119  };
120 }
121 
122 namespace gpudb
123 {
124 
133  {
134 
140  xVector(std::vector<double>()),
141  yVector(std::vector<double>()),
142  count(int32_t()),
143  isValid(bool()),
144  info(std::map<std::string, std::string>())
145  {
146  }
147 
148  std::vector<double> xVector;
149  std::vector<double> yVector;
150  int32_t count;
151  bool isValid;
152  std::map<std::string, std::string> info;
153  };
154 }
155 
156 namespace avro
157 {
158  template<> struct codec_traits<gpudb::AggregateConvexHullResponse>
159  {
160  static void encode(Encoder& e, const gpudb::AggregateConvexHullResponse& v)
161  {
162  ::avro::encode(e, v.xVector);
163  ::avro::encode(e, v.yVector);
164  ::avro::encode(e, v.count);
165  ::avro::encode(e, v.isValid);
166  ::avro::encode(e, v.info);
167  }
168 
169  static void decode(Decoder& d, gpudb::AggregateConvexHullResponse& v)
170  {
171  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
172  {
173  const std::vector<size_t> fo = rd->fieldOrder();
174 
175  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
176  {
177  switch (*it)
178  {
179  case 0:
180  ::avro::decode(d, v.xVector);
181  break;
182 
183  case 1:
184  ::avro::decode(d, v.yVector);
185  break;
186 
187  case 2:
188  ::avro::decode(d, v.count);
189  break;
190 
191  case 3:
192  ::avro::decode(d, v.isValid);
193  break;
194 
195  case 4:
196  ::avro::decode(d, v.info);
197  break;
198 
199  default:
200  break;
201  }
202  }
203  }
204  else
205  {
206  ::avro::decode(d, v.xVector);
207  ::avro::decode(d, v.yVector);
208  ::avro::decode(d, v.count);
209  ::avro::decode(d, v.isValid);
210  ::avro::decode(d, v.info);
211  }
212  }
213  };
214 }
215 
216 #endif
AggregateConvexHullResponse()
Constructs an AggregateConvexHullResponse object with default parameter values.
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