GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
filter_by_table.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_TABLE_H__
7 #define __FILTER_BY_TABLE_H__
8 
9 namespace gpudb
10 {
11 
27  {
28 
34  tableName(std::string()),
35  viewName(std::string()),
36  columnName(std::string()),
37  sourceTableName(std::string()),
38  sourceTableColumnName(std::string()),
39  options(std::map<std::string, std::string>())
40  {
41  }
42 
133  FilterByTableRequest(const std::string& tableName_, const std::string& viewName_, const std::string& columnName_, const std::string& sourceTableName_, const std::string& sourceTableColumnName_, const std::map<std::string, std::string>& options_):
134  tableName( tableName_ ),
135  viewName( viewName_ ),
136  columnName( columnName_ ),
137  sourceTableName( sourceTableName_ ),
138  sourceTableColumnName( sourceTableColumnName_ ),
139  options( options_ )
140  {
141  }
142 
143  std::string tableName;
144  std::string viewName;
145  std::string columnName;
146  std::string sourceTableName;
148  std::map<std::string, std::string> options;
149  };
150 }
151 
152 namespace avro
153 {
154  template<> struct codec_traits<gpudb::FilterByTableRequest>
155  {
156  static void encode(Encoder& e, const gpudb::FilterByTableRequest& v)
157  {
158  ::avro::encode(e, v.tableName);
159  ::avro::encode(e, v.viewName);
160  ::avro::encode(e, v.columnName);
161  ::avro::encode(e, v.sourceTableName);
162  ::avro::encode(e, v.sourceTableColumnName);
163  ::avro::encode(e, v.options);
164  }
165 
166  static void decode(Decoder& d, gpudb::FilterByTableRequest& v)
167  {
168  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
169  {
170  const std::vector<size_t> fo = rd->fieldOrder();
171 
172  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
173  {
174  switch (*it)
175  {
176  case 0:
177  ::avro::decode(d, v.tableName);
178  break;
179 
180  case 1:
181  ::avro::decode(d, v.viewName);
182  break;
183 
184  case 2:
185  ::avro::decode(d, v.columnName);
186  break;
187 
188  case 3:
189  ::avro::decode(d, v.sourceTableName);
190  break;
191 
192  case 4:
193  ::avro::decode(d, v.sourceTableColumnName);
194  break;
195 
196  case 5:
197  ::avro::decode(d, v.options);
198  break;
199 
200  default:
201  break;
202  }
203  }
204  }
205  else
206  {
207  ::avro::decode(d, v.tableName);
208  ::avro::decode(d, v.viewName);
209  ::avro::decode(d, v.columnName);
210  ::avro::decode(d, v.sourceTableName);
211  ::avro::decode(d, v.sourceTableColumnName);
212  ::avro::decode(d, v.options);
213  }
214  }
215  };
216 }
217 
218 namespace gpudb
219 {
220 
236  {
237 
243  count(int64_t()),
244  info(std::map<std::string, std::string>())
245  {
246  }
247 
248  int64_t count;
249  std::map<std::string, std::string> info;
250  };
251 }
252 
253 namespace avro
254 {
255  template<> struct codec_traits<gpudb::FilterByTableResponse>
256  {
257  static void encode(Encoder& e, const gpudb::FilterByTableResponse& v)
258  {
259  ::avro::encode(e, v.count);
260  ::avro::encode(e, v.info);
261  }
262 
263  static void decode(Decoder& d, gpudb::FilterByTableResponse& v)
264  {
265  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
266  {
267  const std::vector<size_t> fo = rd->fieldOrder();
268 
269  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
270  {
271  switch (*it)
272  {
273  case 0:
274  ::avro::decode(d, v.count);
275  break;
276 
277  case 1:
278  ::avro::decode(d, v.info);
279  break;
280 
281  default:
282  break;
283  }
284  }
285  }
286  else
287  {
288  ::avro::decode(d, v.count);
289  ::avro::decode(d, v.info);
290  }
291  }
292  };
293 }
294 
295 #endif
FilterByTableResponse()
Constructs a FilterByTableResponse 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.
FilterByTableRequest()
Constructs a FilterByTableRequest object with default parameter values.
FilterByTableRequest(const std::string &tableName_, const std::string &viewName_, const std::string &columnName_, const std::string &sourceTableName_, const std::string &sourceTableColumnName_, const std::map< std::string, std::string > &options_)
Constructs a FilterByTableRequest object with the specified parameters.
std::map< std::string, std::string > info