GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_join_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 __CREATE_JOIN_TABLE_H__
7 #define __CREATE_JOIN_TABLE_H__
8 
9 namespace gpudb
10 {
11 
24  {
25 
31  joinTableName(std::string()),
32  tableNames(std::vector<std::string>()),
33  columnNames(std::vector<std::string>()),
34  expressions(std::vector<std::string>()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
140  CreateJoinTableRequest(const std::string& joinTableName_, const std::vector<std::string>& tableNames_, const std::vector<std::string>& columnNames_, const std::vector<std::string>& expressions_, const std::map<std::string, std::string>& options_):
141  joinTableName( joinTableName_ ),
142  tableNames( tableNames_ ),
143  columnNames( columnNames_ ),
144  expressions( expressions_ ),
145  options( options_ )
146  {
147  }
148 
149  std::string joinTableName;
150  std::vector<std::string> tableNames;
151  std::vector<std::string> columnNames;
152  std::vector<std::string> expressions;
153  std::map<std::string, std::string> options;
154  };
155 }
156 
157 namespace avro
158 {
159  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
160  {
161  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
162  {
163  ::avro::encode(e, v.joinTableName);
164  ::avro::encode(e, v.tableNames);
165  ::avro::encode(e, v.columnNames);
166  ::avro::encode(e, v.expressions);
167  ::avro::encode(e, v.options);
168  }
169 
170  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
171  {
172  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173  {
174  const std::vector<size_t> fo = rd->fieldOrder();
175 
176  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177  {
178  switch (*it)
179  {
180  case 0:
181  ::avro::decode(d, v.joinTableName);
182  break;
183 
184  case 1:
185  ::avro::decode(d, v.tableNames);
186  break;
187 
188  case 2:
189  ::avro::decode(d, v.columnNames);
190  break;
191 
192  case 3:
193  ::avro::decode(d, v.expressions);
194  break;
195 
196  case 4:
197  ::avro::decode(d, v.options);
198  break;
199 
200  default:
201  break;
202  }
203  }
204  }
205  else
206  {
207  ::avro::decode(d, v.joinTableName);
208  ::avro::decode(d, v.tableNames);
209  ::avro::decode(d, v.columnNames);
210  ::avro::decode(d, v.expressions);
211  ::avro::decode(d, v.options);
212  }
213  }
214  };
215 }
216 
217 namespace gpudb
218 {
219 
232  {
233 
239  joinTableName(std::string()),
240  count(int64_t()),
241  info(std::map<std::string, std::string>())
242  {
243  }
244 
245  std::string joinTableName;
246  int64_t count;
247  std::map<std::string, std::string> info;
248  };
249 }
250 
251 namespace avro
252 {
253  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
254  {
255  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
256  {
257  ::avro::encode(e, v.joinTableName);
258  ::avro::encode(e, v.count);
259  ::avro::encode(e, v.info);
260  }
261 
262  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
263  {
264  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
265  {
266  const std::vector<size_t> fo = rd->fieldOrder();
267 
268  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
269  {
270  switch (*it)
271  {
272  case 0:
273  ::avro::decode(d, v.joinTableName);
274  break;
275 
276  case 1:
277  ::avro::decode(d, v.count);
278  break;
279 
280  case 2:
281  ::avro::decode(d, v.info);
282  break;
283 
284  default:
285  break;
286  }
287  }
288  }
289  else
290  {
291  ::avro::decode(d, v.joinTableName);
292  ::avro::decode(d, v.count);
293  ::avro::decode(d, v.info);
294  }
295  }
296  };
297 }
298 
299 #endif
std::map< std::string, std::string > info
std::vector< std::string > columnNames
std::map< std::string, std::string > options
std::vector< std::string > expressions
A set of input parameters for const.
CreateJoinTableResponse()
Constructs a CreateJoinTableResponse object with default parameter values.
CreateJoinTableRequest(const std::string &joinTableName_, const std::vector< std::string > &tableNames_, const std::vector< std::string > &columnNames_, const std::vector< std::string > &expressions_, const std::map< std::string, std::string > &options_)
Constructs a CreateJoinTableRequest object with the specified parameters.
A set of output parameters for const.
CreateJoinTableRequest()
Constructs a CreateJoinTableRequest object with default parameter values.
std::vector< std::string > tableNames