GPUdb C++ API  Version 7.2.2.4
visualize_image_labels.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_IMAGE_LABELS_H__
7 #define __VISUALIZE_IMAGE_LABELS_H__
8 
9 namespace gpudb
10 {
12  struct VisualizeImageLabelsRequest
13  {
14  VisualizeImageLabelsRequest() :
15  tableName(std::string()),
16  xColumnName(std::string()),
17  yColumnName(std::string()),
18  xOffset(std::string()),
19  yOffset(std::string()),
20  textString(std::string()),
21  font(std::string()),
22  textColor(std::string()),
23  textAngle(std::string()),
24  textScale(std::string()),
25  drawBox(std::string()),
26  drawLeader(std::string()),
27  lineWidth(std::string()),
28  lineColor(std::string()),
29  fillColor(std::string()),
30  leaderXColumnName(std::string()),
31  leaderYColumnName(std::string()),
32  filter(std::string()),
33  minX(double()),
34  maxX(double()),
35  minY(double()),
36  maxY(double()),
37  width(int32_t()),
38  height(int32_t()),
39  projection(std::string()),
40  options(std::map<std::string, std::string>())
41  {
42  }
43 
44  VisualizeImageLabelsRequest(const std::string& tableName_, const std::string& xColumnName_, const std::string& yColumnName_, const std::string& xOffset_, const std::string& yOffset_, const std::string& textString_, const std::string& font_, const std::string& textColor_, const std::string& textAngle_, const std::string& textScale_, const std::string& drawBox_, const std::string& drawLeader_, const std::string& lineWidth_, const std::string& lineColor_, const std::string& fillColor_, const std::string& leaderXColumnName_, const std::string& leaderYColumnName_, const std::string& filter_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string& projection_, const std::map<std::string, std::string>& options_):
45  tableName( tableName_ ),
46  xColumnName( xColumnName_ ),
47  yColumnName( yColumnName_ ),
48  xOffset( xOffset_ ),
49  yOffset( yOffset_ ),
50  textString( textString_ ),
51  font( font_ ),
52  textColor( textColor_ ),
53  textAngle( textAngle_ ),
54  textScale( textScale_ ),
55  drawBox( drawBox_ ),
56  drawLeader( drawLeader_ ),
57  lineWidth( lineWidth_ ),
58  lineColor( lineColor_ ),
59  fillColor( fillColor_ ),
60  leaderXColumnName( leaderXColumnName_ ),
61  leaderYColumnName( leaderYColumnName_ ),
62  filter( filter_ ),
63  minX( minX_ ),
64  maxX( maxX_ ),
65  minY( minY_ ),
66  maxY( maxY_ ),
67  width( width_ ),
68  height( height_ ),
69  projection( projection_ ),
70  options( options_ )
71  {
72  }
73 
74  std::string tableName;
75  std::string xColumnName;
76  std::string yColumnName;
77  std::string xOffset;
78  std::string yOffset;
79  std::string textString;
80  std::string font;
81  std::string textColor;
82  std::string textAngle;
83  std::string textScale;
84  std::string drawBox;
85  std::string drawLeader;
86  std::string lineWidth;
87  std::string lineColor;
88  std::string fillColor;
89  std::string leaderXColumnName;
90  std::string leaderYColumnName;
91  std::string filter;
92  double minX;
93  double maxX;
94  double minY;
95  double maxY;
96  int32_t width;
97  int32_t height;
98  std::string projection;
99  std::map<std::string, std::string> options;
100  };
101 } // end namespace gpudb
102 
103 namespace avro
104 {
105  template<> struct codec_traits<gpudb::VisualizeImageLabelsRequest>
106  {
107  static void encode(Encoder& e, const gpudb::VisualizeImageLabelsRequest& v)
108  {
109  ::avro::encode(e, v.tableName);
110  ::avro::encode(e, v.xColumnName);
111  ::avro::encode(e, v.yColumnName);
112  ::avro::encode(e, v.xOffset);
113  ::avro::encode(e, v.yOffset);
114  ::avro::encode(e, v.textString);
115  ::avro::encode(e, v.font);
116  ::avro::encode(e, v.textColor);
117  ::avro::encode(e, v.textAngle);
118  ::avro::encode(e, v.textScale);
119  ::avro::encode(e, v.drawBox);
120  ::avro::encode(e, v.drawLeader);
121  ::avro::encode(e, v.lineWidth);
122  ::avro::encode(e, v.lineColor);
123  ::avro::encode(e, v.fillColor);
124  ::avro::encode(e, v.leaderXColumnName);
125  ::avro::encode(e, v.leaderYColumnName);
126  ::avro::encode(e, v.filter);
127  ::avro::encode(e, v.minX);
128  ::avro::encode(e, v.maxX);
129  ::avro::encode(e, v.minY);
130  ::avro::encode(e, v.maxY);
131  ::avro::encode(e, v.width);
132  ::avro::encode(e, v.height);
133  ::avro::encode(e, v.projection);
134  ::avro::encode(e, v.options);
135  }
136 
137  static void decode(Decoder& d, gpudb::VisualizeImageLabelsRequest& v)
138  {
139  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
140  {
141  const std::vector<size_t> fo = rd->fieldOrder();
142 
143  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
144  {
145  switch (*it)
146  {
147  case 0:
148  ::avro::decode(d, v.tableName);
149  break;
150 
151  case 1:
152  ::avro::decode(d, v.xColumnName);
153  break;
154 
155  case 2:
156  ::avro::decode(d, v.yColumnName);
157  break;
158 
159  case 3:
160  ::avro::decode(d, v.xOffset);
161  break;
162 
163  case 4:
164  ::avro::decode(d, v.yOffset);
165  break;
166 
167  case 5:
168  ::avro::decode(d, v.textString);
169  break;
170 
171  case 6:
172  ::avro::decode(d, v.font);
173  break;
174 
175  case 7:
176  ::avro::decode(d, v.textColor);
177  break;
178 
179  case 8:
180  ::avro::decode(d, v.textAngle);
181  break;
182 
183  case 9:
184  ::avro::decode(d, v.textScale);
185  break;
186 
187  case 10:
188  ::avro::decode(d, v.drawBox);
189  break;
190 
191  case 11:
192  ::avro::decode(d, v.drawLeader);
193  break;
194 
195  case 12:
196  ::avro::decode(d, v.lineWidth);
197  break;
198 
199  case 13:
200  ::avro::decode(d, v.lineColor);
201  break;
202 
203  case 14:
204  ::avro::decode(d, v.fillColor);
205  break;
206 
207  case 15:
208  ::avro::decode(d, v.leaderXColumnName);
209  break;
210 
211  case 16:
212  ::avro::decode(d, v.leaderYColumnName);
213  break;
214 
215  case 17:
216  ::avro::decode(d, v.filter);
217  break;
218 
219  case 18:
220  ::avro::decode(d, v.minX);
221  break;
222 
223  case 19:
224  ::avro::decode(d, v.maxX);
225  break;
226 
227  case 20:
228  ::avro::decode(d, v.minY);
229  break;
230 
231  case 21:
232  ::avro::decode(d, v.maxY);
233  break;
234 
235  case 22:
236  ::avro::decode(d, v.width);
237  break;
238 
239  case 23:
240  ::avro::decode(d, v.height);
241  break;
242 
243  case 24:
244  ::avro::decode(d, v.projection);
245  break;
246 
247  case 25:
248  ::avro::decode(d, v.options);
249  break;
250 
251  default:
252  break;
253  }
254  }
255  }
256  else
257  {
258  ::avro::decode(d, v.tableName);
259  ::avro::decode(d, v.xColumnName);
260  ::avro::decode(d, v.yColumnName);
261  ::avro::decode(d, v.xOffset);
262  ::avro::decode(d, v.yOffset);
263  ::avro::decode(d, v.textString);
264  ::avro::decode(d, v.font);
265  ::avro::decode(d, v.textColor);
266  ::avro::decode(d, v.textAngle);
267  ::avro::decode(d, v.textScale);
268  ::avro::decode(d, v.drawBox);
269  ::avro::decode(d, v.drawLeader);
270  ::avro::decode(d, v.lineWidth);
271  ::avro::decode(d, v.lineColor);
272  ::avro::decode(d, v.fillColor);
273  ::avro::decode(d, v.leaderXColumnName);
274  ::avro::decode(d, v.leaderYColumnName);
275  ::avro::decode(d, v.filter);
276  ::avro::decode(d, v.minX);
277  ::avro::decode(d, v.maxX);
278  ::avro::decode(d, v.minY);
279  ::avro::decode(d, v.maxY);
280  ::avro::decode(d, v.width);
281  ::avro::decode(d, v.height);
282  ::avro::decode(d, v.projection);
283  ::avro::decode(d, v.options);
284  }
285  }
286  };
287 } // end namespace avro
288 
289 namespace gpudb
290 {
292  struct VisualizeImageLabelsResponse
293  {
294  VisualizeImageLabelsResponse() :
295  width(double()),
296  height(double()),
297  bgColor(int64_t()),
298  imageData(std::vector<uint8_t>()),
299  info(std::map<std::string, std::string>())
300  {
301  }
302 
303  double width;
304  double height;
305  int64_t bgColor;
306  std::vector<uint8_t> imageData;
307  std::map<std::string, std::string> info;
308  };
309 } // end namespace gpudb
310 
311 namespace avro
312 {
313  template<> struct codec_traits<gpudb::VisualizeImageLabelsResponse>
314  {
315  static void encode(Encoder& e, const gpudb::VisualizeImageLabelsResponse& v)
316  {
317  ::avro::encode(e, v.width);
318  ::avro::encode(e, v.height);
319  ::avro::encode(e, v.bgColor);
320  ::avro::encode(e, v.imageData);
321  ::avro::encode(e, v.info);
322  }
323 
324  static void decode(Decoder& d, gpudb::VisualizeImageLabelsResponse& v)
325  {
326  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
327  {
328  const std::vector<size_t> fo = rd->fieldOrder();
329 
330  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
331  {
332  switch (*it)
333  {
334  case 0:
335  ::avro::decode(d, v.width);
336  break;
337 
338  case 1:
339  ::avro::decode(d, v.height);
340  break;
341 
342  case 2:
343  ::avro::decode(d, v.bgColor);
344  break;
345 
346  case 3:
347  ::avro::decode(d, v.imageData);
348  break;
349 
350  case 4:
351  ::avro::decode(d, v.info);
352  break;
353 
354  default:
355  break;
356  }
357  }
358  }
359  else
360  {
361  ::avro::decode(d, v.width);
362  ::avro::decode(d, v.height);
363  ::avro::decode(d, v.bgColor);
364  ::avro::decode(d, v.imageData);
365  ::avro::decode(d, v.info);
366  }
367  }
368  };
369 } // end namespace avro
370 
371 #endif // __VISUALIZE_IMAGE_LABELS_H__
FilterResponse filter(const FilterRequest &request_) const
Filters data based on the specified expression.