GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_by_radius_geometry.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 __FILTER_BY_RADIUS_GEOMETRY_H__
7 #define __FILTER_BY_RADIUS_GEOMETRY_H__
8 
9 namespace gpudb
10 {
11 
25  {
26 
32  tableName(std::string()),
33  viewName(std::string()),
34  columnName(std::string()),
35  xCenter(double()),
36  yCenter(double()),
37  radius(double()),
38  options(std::map<std::string, std::string>())
39  {
40  }
41 
79  FilterByRadiusGeometryRequest(const std::string& tableName_, const std::string& viewName_, const std::string& columnName_, const double xCenter_, const double yCenter_, const double radius_, const std::map<std::string, std::string>& options_):
80  tableName( tableName_ ),
81  viewName( viewName_ ),
82  columnName( columnName_ ),
83  xCenter( xCenter_ ),
84  yCenter( yCenter_ ),
85  radius( radius_ ),
86  options( options_ )
87  {
88  }
89 
90  std::string tableName;
91  std::string viewName;
92  std::string columnName;
93  double xCenter;
94  double yCenter;
95  double radius;
96  std::map<std::string, std::string> options;
97  };
98 }
99 
100 namespace avro
101 {
102  template<> struct codec_traits<gpudb::FilterByRadiusGeometryRequest>
103  {
104  static void encode(Encoder& e, const gpudb::FilterByRadiusGeometryRequest& v)
105  {
106  ::avro::encode(e, v.tableName);
107  ::avro::encode(e, v.viewName);
108  ::avro::encode(e, v.columnName);
109  ::avro::encode(e, v.xCenter);
110  ::avro::encode(e, v.yCenter);
111  ::avro::encode(e, v.radius);
112  ::avro::encode(e, v.options);
113  }
114 
115  static void decode(Decoder& d, gpudb::FilterByRadiusGeometryRequest& v)
116  {
117  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
118  {
119  const std::vector<size_t> fo = rd->fieldOrder();
120 
121  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
122  {
123  switch (*it)
124  {
125  case 0:
126  ::avro::decode(d, v.tableName);
127  break;
128 
129  case 1:
130  ::avro::decode(d, v.viewName);
131  break;
132 
133  case 2:
134  ::avro::decode(d, v.columnName);
135  break;
136 
137  case 3:
138  ::avro::decode(d, v.xCenter);
139  break;
140 
141  case 4:
142  ::avro::decode(d, v.yCenter);
143  break;
144 
145  case 5:
146  ::avro::decode(d, v.radius);
147  break;
148 
149  case 6:
150  ::avro::decode(d, v.options);
151  break;
152 
153  default:
154  break;
155  }
156  }
157  }
158  else
159  {
160  ::avro::decode(d, v.tableName);
161  ::avro::decode(d, v.viewName);
162  ::avro::decode(d, v.columnName);
163  ::avro::decode(d, v.xCenter);
164  ::avro::decode(d, v.yCenter);
165  ::avro::decode(d, v.radius);
166  ::avro::decode(d, v.options);
167  }
168  }
169  };
170 }
171 
172 namespace gpudb
173 {
174 
188  {
189 
195  count(int64_t()),
196  info(std::map<std::string, std::string>())
197  {
198  }
199 
200  int64_t count;
201  std::map<std::string, std::string> info;
202  };
203 }
204 
205 namespace avro
206 {
207  template<> struct codec_traits<gpudb::FilterByRadiusGeometryResponse>
208  {
209  static void encode(Encoder& e, const gpudb::FilterByRadiusGeometryResponse& v)
210  {
211  ::avro::encode(e, v.count);
212  ::avro::encode(e, v.info);
213  }
214 
215  static void decode(Decoder& d, gpudb::FilterByRadiusGeometryResponse& v)
216  {
217  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
218  {
219  const std::vector<size_t> fo = rd->fieldOrder();
220 
221  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
222  {
223  switch (*it)
224  {
225  case 0:
226  ::avro::decode(d, v.count);
227  break;
228 
229  case 1:
230  ::avro::decode(d, v.info);
231  break;
232 
233  default:
234  break;
235  }
236  }
237  }
238  else
239  {
240  ::avro::decode(d, v.count);
241  ::avro::decode(d, v.info);
242  }
243  }
244  };
245 }
246 
247 #endif
FilterByRadiusGeometryRequest(const std::string &tableName_, const std::string &viewName_, const std::string &columnName_, const double xCenter_, const double yCenter_, const double radius_, const std::map< std::string, std::string > &options_)
Constructs a FilterByRadiusGeometryRequest object with the specified parameters.
FilterByRadiusGeometryRequest()
Constructs a FilterByRadiusGeometryRequest object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > options
A set of input parameters for const.
std::map< std::string, std::string > info
FilterByRadiusGeometryResponse()
Constructs a FilterByRadiusGeometryResponse object with default parameter values. ...