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