GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_by_area_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_AREA_GEOMETRY_H__
7 #define __FILTER_BY_AREA_GEOMETRY_H__
8 
9 namespace gpudb
10 {
11 
25  {
26 
32  tableName(std::string()),
33  viewName(std::string()),
34  columnName(std::string()),
35  xVector(std::vector<double>()),
36  yVector(std::vector<double>()),
37  options(std::map<std::string, std::string>())
38  {
39  }
40 
73  FilterByAreaGeometryRequest(const std::string& tableName_, const std::string& viewName_, const std::string& columnName_, const std::vector<double>& xVector_, const std::vector<double>& yVector_, const std::map<std::string, std::string>& options_):
74  tableName( tableName_ ),
75  viewName( viewName_ ),
76  columnName( columnName_ ),
77  xVector( xVector_ ),
78  yVector( yVector_ ),
79  options( options_ )
80  {
81  }
82 
83  std::string tableName;
84  std::string viewName;
85  std::string columnName;
86  std::vector<double> xVector;
87  std::vector<double> yVector;
88  std::map<std::string, std::string> options;
89  };
90 }
91 
92 namespace avro
93 {
94  template<> struct codec_traits<gpudb::FilterByAreaGeometryRequest>
95  {
96  static void encode(Encoder& e, const gpudb::FilterByAreaGeometryRequest& v)
97  {
98  ::avro::encode(e, v.tableName);
99  ::avro::encode(e, v.viewName);
100  ::avro::encode(e, v.columnName);
101  ::avro::encode(e, v.xVector);
102  ::avro::encode(e, v.yVector);
103  ::avro::encode(e, v.options);
104  }
105 
106  static void decode(Decoder& d, gpudb::FilterByAreaGeometryRequest& v)
107  {
108  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109  {
110  const std::vector<size_t> fo = rd->fieldOrder();
111 
112  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
113  {
114  switch (*it)
115  {
116  case 0:
117  ::avro::decode(d, v.tableName);
118  break;
119 
120  case 1:
121  ::avro::decode(d, v.viewName);
122  break;
123 
124  case 2:
125  ::avro::decode(d, v.columnName);
126  break;
127 
128  case 3:
129  ::avro::decode(d, v.xVector);
130  break;
131 
132  case 4:
133  ::avro::decode(d, v.yVector);
134  break;
135 
136  case 5:
137  ::avro::decode(d, v.options);
138  break;
139 
140  default:
141  break;
142  }
143  }
144  }
145  else
146  {
147  ::avro::decode(d, v.tableName);
148  ::avro::decode(d, v.viewName);
149  ::avro::decode(d, v.columnName);
150  ::avro::decode(d, v.xVector);
151  ::avro::decode(d, v.yVector);
152  ::avro::decode(d, v.options);
153  }
154  }
155  };
156 }
157 
158 namespace gpudb
159 {
160 
174  {
175 
181  count(int64_t()),
182  info(std::map<std::string, std::string>())
183  {
184  }
185 
186  int64_t count;
187  std::map<std::string, std::string> info;
188  };
189 }
190 
191 namespace avro
192 {
193  template<> struct codec_traits<gpudb::FilterByAreaGeometryResponse>
194  {
195  static void encode(Encoder& e, const gpudb::FilterByAreaGeometryResponse& v)
196  {
197  ::avro::encode(e, v.count);
198  ::avro::encode(e, v.info);
199  }
200 
201  static void decode(Decoder& d, gpudb::FilterByAreaGeometryResponse& v)
202  {
203  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
204  {
205  const std::vector<size_t> fo = rd->fieldOrder();
206 
207  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208  {
209  switch (*it)
210  {
211  case 0:
212  ::avro::decode(d, v.count);
213  break;
214 
215  case 1:
216  ::avro::decode(d, v.info);
217  break;
218 
219  default:
220  break;
221  }
222  }
223  }
224  else
225  {
226  ::avro::decode(d, v.count);
227  ::avro::decode(d, v.info);
228  }
229  }
230  };
231 }
232 
233 #endif
std::map< std::string, std::string > options
FilterByAreaGeometryRequest()
Constructs a FilterByAreaGeometryRequest object with default parameter values.
FilterByAreaGeometryRequest(const std::string &tableName_, const std::string &viewName_, const std::string &columnName_, const std::vector< double > &xVector_, const std::vector< double > &yVector_, const std::map< std::string, std::string > &options_)
Constructs a FilterByAreaGeometryRequest object with the specified parameters.
A set of output parameters for const.
FilterByAreaGeometryResponse()
Constructs a FilterByAreaGeometryResponse object with default parameter values.
std::map< std::string, std::string > info
A set of input parameters for const.