GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_by_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_GEOMETRY_H__
7 #define __FILTER_BY_GEOMETRY_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  tableName(std::string()),
29  viewName(std::string()),
30  columnName(std::string()),
31  inputWkt(std::string()),
32  operation(std::string()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
95  FilterByGeometryRequest(const std::string& tableName_, const std::string& viewName_, const std::string& columnName_, const std::string& inputWkt_, const std::string& operation_, const std::map<std::string, std::string>& options_):
96  tableName( tableName_ ),
97  viewName( viewName_ ),
98  columnName( columnName_ ),
99  inputWkt( inputWkt_ ),
100  operation( operation_ ),
101  options( options_ )
102  {
103  }
104 
105  std::string tableName;
106  std::string viewName;
107  std::string columnName;
108  std::string inputWkt;
109  std::string operation;
110  std::map<std::string, std::string> options;
111  };
112 }
113 
114 namespace avro
115 {
116  template<> struct codec_traits<gpudb::FilterByGeometryRequest>
117  {
118  static void encode(Encoder& e, const gpudb::FilterByGeometryRequest& v)
119  {
120  ::avro::encode(e, v.tableName);
121  ::avro::encode(e, v.viewName);
122  ::avro::encode(e, v.columnName);
123  ::avro::encode(e, v.inputWkt);
124  ::avro::encode(e, v.operation);
125  ::avro::encode(e, v.options);
126  }
127 
128  static void decode(Decoder& d, gpudb::FilterByGeometryRequest& v)
129  {
130  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
131  {
132  const std::vector<size_t> fo = rd->fieldOrder();
133 
134  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
135  {
136  switch (*it)
137  {
138  case 0:
139  ::avro::decode(d, v.tableName);
140  break;
141 
142  case 1:
143  ::avro::decode(d, v.viewName);
144  break;
145 
146  case 2:
147  ::avro::decode(d, v.columnName);
148  break;
149 
150  case 3:
151  ::avro::decode(d, v.inputWkt);
152  break;
153 
154  case 4:
155  ::avro::decode(d, v.operation);
156  break;
157 
158  case 5:
159  ::avro::decode(d, v.options);
160  break;
161 
162  default:
163  break;
164  }
165  }
166  }
167  else
168  {
169  ::avro::decode(d, v.tableName);
170  ::avro::decode(d, v.viewName);
171  ::avro::decode(d, v.columnName);
172  ::avro::decode(d, v.inputWkt);
173  ::avro::decode(d, v.operation);
174  ::avro::decode(d, v.options);
175  }
176  }
177  };
178 }
179 
180 namespace gpudb
181 {
182 
192  {
193 
199  count(int64_t()),
200  info(std::map<std::string, std::string>())
201  {
202  }
203 
204  int64_t count;
205  std::map<std::string, std::string> info;
206  };
207 }
208 
209 namespace avro
210 {
211  template<> struct codec_traits<gpudb::FilterByGeometryResponse>
212  {
213  static void encode(Encoder& e, const gpudb::FilterByGeometryResponse& v)
214  {
215  ::avro::encode(e, v.count);
216  ::avro::encode(e, v.info);
217  }
218 
219  static void decode(Decoder& d, gpudb::FilterByGeometryResponse& v)
220  {
221  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
222  {
223  const std::vector<size_t> fo = rd->fieldOrder();
224 
225  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
226  {
227  switch (*it)
228  {
229  case 0:
230  ::avro::decode(d, v.count);
231  break;
232 
233  case 1:
234  ::avro::decode(d, v.info);
235  break;
236 
237  default:
238  break;
239  }
240  }
241  }
242  else
243  {
244  ::avro::decode(d, v.count);
245  ::avro::decode(d, v.info);
246  }
247  }
248  };
249 }
250 
251 #endif
A set of input parameters for const.
FilterByGeometryResponse()
Constructs a FilterByGeometryResponse object with default parameter values.
std::map< std::string, std::string > info
FilterByGeometryRequest(const std::string &tableName_, const std::string &viewName_, const std::string &columnName_, const std::string &inputWkt_, const std::string &operation_, const std::map< std::string, std::string > &options_)
Constructs a FilterByGeometryRequest object with the specified parameters.
FilterByGeometryRequest()
Constructs a FilterByGeometryRequest object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > options