GPUdb C++ API  Version 7.2.2.4
visualize_get_feature_info.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __VISUALIZE_GET_FEATURE_INFO_H__
7 #define __VISUALIZE_GET_FEATURE_INFO_H__
8 
9 namespace gpudb
10 {
12  struct VisualizeGetFeatureInfoRequest
13  {
14  VisualizeGetFeatureInfoRequest() :
15  tableNames(std::vector<std::string>()),
16  xColumnNames(std::vector<std::string>()),
17  yColumnNames(std::vector<std::string>()),
18  geometryColumnNames(std::vector<std::string>()),
19  queryColumnNames(std::vector<std::vector<std::string> >()),
20  projection(std::string()),
21  minX(double()),
22  maxX(double()),
23  minY(double()),
24  maxY(double()),
25  width(int32_t()),
26  height(int32_t()),
27  x(int32_t()),
28  y(int32_t()),
29  radius(int32_t()),
30  limit(int64_t()),
31  encoding(std::string()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
36  VisualizeGetFeatureInfoRequest(const std::vector<std::string>& tableNames_, const std::vector<std::string>& xColumnNames_, const std::vector<std::string>& yColumnNames_, const std::vector<std::string>& geometryColumnNames_, const std::vector<std::vector<std::string> >& queryColumnNames_, const std::string& projection_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const int32_t x_, const int32_t y_, const int32_t radius_, const int64_t limit_, const std::string& encoding_, const std::map<std::string, std::string>& options_):
37  tableNames( tableNames_ ),
38  xColumnNames( xColumnNames_ ),
39  yColumnNames( yColumnNames_ ),
40  geometryColumnNames( geometryColumnNames_ ),
41  queryColumnNames( queryColumnNames_ ),
42  projection( projection_ ),
43  minX( minX_ ),
44  maxX( maxX_ ),
45  minY( minY_ ),
46  maxY( maxY_ ),
47  width( width_ ),
48  height( height_ ),
49  x( x_ ),
50  y( y_ ),
51  radius( radius_ ),
52  limit( limit_ ),
53  encoding( encoding_ ),
54  options( options_ )
55  {
56  }
57 
58  std::vector<std::string> tableNames;
59  std::vector<std::string> xColumnNames;
60  std::vector<std::string> yColumnNames;
61  std::vector<std::string> geometryColumnNames;
62  std::vector<std::vector<std::string> > queryColumnNames;
63  std::string projection;
64  double minX;
65  double maxX;
66  double minY;
67  double maxY;
68  int32_t width;
69  int32_t height;
70  int32_t x;
71  int32_t y;
72  int32_t radius;
73  int64_t limit;
74  std::string encoding;
75  std::map<std::string, std::string> options;
76  };
77 } // end namespace gpudb
78 
79 namespace avro
80 {
81  template<> struct codec_traits<gpudb::VisualizeGetFeatureInfoRequest>
82  {
83  static void encode(Encoder& e, const gpudb::VisualizeGetFeatureInfoRequest& v)
84  {
85  ::avro::encode(e, v.tableNames);
86  ::avro::encode(e, v.xColumnNames);
87  ::avro::encode(e, v.yColumnNames);
88  ::avro::encode(e, v.geometryColumnNames);
89  ::avro::encode(e, v.queryColumnNames);
90  ::avro::encode(e, v.projection);
91  ::avro::encode(e, v.minX);
92  ::avro::encode(e, v.maxX);
93  ::avro::encode(e, v.minY);
94  ::avro::encode(e, v.maxY);
95  ::avro::encode(e, v.width);
96  ::avro::encode(e, v.height);
97  ::avro::encode(e, v.x);
98  ::avro::encode(e, v.y);
99  ::avro::encode(e, v.radius);
100  ::avro::encode(e, v.limit);
101  ::avro::encode(e, v.encoding);
102  ::avro::encode(e, v.options);
103  }
104 
105  static void decode(Decoder& d, gpudb::VisualizeGetFeatureInfoRequest& v)
106  {
107  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
108  {
109  const std::vector<size_t> fo = rd->fieldOrder();
110 
111  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
112  {
113  switch (*it)
114  {
115  case 0:
116  ::avro::decode(d, v.tableNames);
117  break;
118 
119  case 1:
120  ::avro::decode(d, v.xColumnNames);
121  break;
122 
123  case 2:
124  ::avro::decode(d, v.yColumnNames);
125  break;
126 
127  case 3:
128  ::avro::decode(d, v.geometryColumnNames);
129  break;
130 
131  case 4:
132  ::avro::decode(d, v.queryColumnNames);
133  break;
134 
135  case 5:
136  ::avro::decode(d, v.projection);
137  break;
138 
139  case 6:
140  ::avro::decode(d, v.minX);
141  break;
142 
143  case 7:
144  ::avro::decode(d, v.maxX);
145  break;
146 
147  case 8:
148  ::avro::decode(d, v.minY);
149  break;
150 
151  case 9:
152  ::avro::decode(d, v.maxY);
153  break;
154 
155  case 10:
156  ::avro::decode(d, v.width);
157  break;
158 
159  case 11:
160  ::avro::decode(d, v.height);
161  break;
162 
163  case 12:
164  ::avro::decode(d, v.x);
165  break;
166 
167  case 13:
168  ::avro::decode(d, v.y);
169  break;
170 
171  case 14:
172  ::avro::decode(d, v.radius);
173  break;
174 
175  case 15:
176  ::avro::decode(d, v.limit);
177  break;
178 
179  case 16:
180  ::avro::decode(d, v.encoding);
181  break;
182 
183  case 17:
184  ::avro::decode(d, v.options);
185  break;
186 
187  default:
188  break;
189  }
190  }
191  }
192  else
193  {
194  ::avro::decode(d, v.tableNames);
195  ::avro::decode(d, v.xColumnNames);
196  ::avro::decode(d, v.yColumnNames);
197  ::avro::decode(d, v.geometryColumnNames);
198  ::avro::decode(d, v.queryColumnNames);
199  ::avro::decode(d, v.projection);
200  ::avro::decode(d, v.minX);
201  ::avro::decode(d, v.maxX);
202  ::avro::decode(d, v.minY);
203  ::avro::decode(d, v.maxY);
204  ::avro::decode(d, v.width);
205  ::avro::decode(d, v.height);
206  ::avro::decode(d, v.x);
207  ::avro::decode(d, v.y);
208  ::avro::decode(d, v.radius);
209  ::avro::decode(d, v.limit);
210  ::avro::decode(d, v.encoding);
211  ::avro::decode(d, v.options);
212  }
213  }
214  };
215 } // end namespace avro
216 
217 namespace gpudb
218 {
220  struct VisualizeGetFeatureInfoResponse
221  {
222  VisualizeGetFeatureInfoResponse() :
223  tableNames(std::vector<std::string>()),
224  typeSchemas(std::vector<std::string>()),
225  recordsBinary(std::vector<std::vector<uint8_t> >()),
226  recordsJson(std::vector<std::string>()),
227  geojsonEncodedResponse(std::string()),
228  textEncodedResponse(std::string()),
229  info(std::map<std::string, std::string>())
230  {
231  }
232 
233  std::vector<std::string> tableNames;
234  std::vector<std::string> typeSchemas;
235  std::vector<std::vector<uint8_t> > recordsBinary;
236  std::vector<std::string> recordsJson;
237  std::string geojsonEncodedResponse;
238  std::string textEncodedResponse;
239  std::map<std::string, std::string> info;
240  };
241 } // end namespace gpudb
242 
243 namespace avro
244 {
245  template<> struct codec_traits<gpudb::VisualizeGetFeatureInfoResponse>
246  {
247  static void encode(Encoder& e, const gpudb::VisualizeGetFeatureInfoResponse& v)
248  {
249  ::avro::encode(e, v.tableNames);
250  ::avro::encode(e, v.typeSchemas);
251  ::avro::encode(e, v.recordsBinary);
252  ::avro::encode(e, v.recordsJson);
253  ::avro::encode(e, v.geojsonEncodedResponse);
254  ::avro::encode(e, v.textEncodedResponse);
255  ::avro::encode(e, v.info);
256  }
257 
258  static void decode(Decoder& d, gpudb::VisualizeGetFeatureInfoResponse& v)
259  {
260  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
261  {
262  const std::vector<size_t> fo = rd->fieldOrder();
263 
264  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
265  {
266  switch (*it)
267  {
268  case 0:
269  ::avro::decode(d, v.tableNames);
270  break;
271 
272  case 1:
273  ::avro::decode(d, v.typeSchemas);
274  break;
275 
276  case 2:
277  ::avro::decode(d, v.recordsBinary);
278  break;
279 
280  case 3:
281  ::avro::decode(d, v.recordsJson);
282  break;
283 
284  case 4:
285  ::avro::decode(d, v.geojsonEncodedResponse);
286  break;
287 
288  case 5:
289  ::avro::decode(d, v.textEncodedResponse);
290  break;
291 
292  case 6:
293  ::avro::decode(d, v.info);
294  break;
295 
296  default:
297  break;
298  }
299  }
300  }
301  else
302  {
303  ::avro::decode(d, v.tableNames);
304  ::avro::decode(d, v.typeSchemas);
305  ::avro::decode(d, v.recordsBinary);
306  ::avro::decode(d, v.recordsJson);
307  ::avro::decode(d, v.geojsonEncodedResponse);
308  ::avro::decode(d, v.textEncodedResponse);
309  ::avro::decode(d, v.info);
310  }
311  }
312  };
313 } // end namespace avro
314 
315 #endif // __VISUALIZE_GET_FEATURE_INFO_H__