GPUdb C++ API  Version 6.1.0.0
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 
21  {
22 
28  joinTableName(std::string()),
29  tableNames(std::vector<std::string>()),
30  columnNames(std::vector<std::string>()),
31  expressions(std::vector<std::string>()),
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
148  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_):
149  joinTableName( joinTableName_ ),
150  tableNames( tableNames_ ),
151  columnNames( columnNames_ ),
152  expressions( expressions_ ),
153  options( options_ )
154  {
155  }
156 
157  std::string joinTableName;
158  std::vector<std::string> tableNames;
159  std::vector<std::string> columnNames;
160  std::vector<std::string> expressions;
161  std::map<std::string, std::string> options;
162  };
163 }
164 
165 namespace avro
166 {
167  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
168  {
169  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
170  {
171  ::avro::encode(e, v.joinTableName);
172  ::avro::encode(e, v.tableNames);
173  ::avro::encode(e, v.columnNames);
174  ::avro::encode(e, v.expressions);
175  ::avro::encode(e, v.options);
176  }
177 
178  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
179  {
180  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
181  {
182  const std::vector<size_t> fo = rd->fieldOrder();
183 
184  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
185  {
186  switch (*it)
187  {
188  case 0:
189  ::avro::decode(d, v.joinTableName);
190  break;
191 
192  case 1:
193  ::avro::decode(d, v.tableNames);
194  break;
195 
196  case 2:
197  ::avro::decode(d, v.columnNames);
198  break;
199 
200  case 3:
201  ::avro::decode(d, v.expressions);
202  break;
203 
204  case 4:
205  ::avro::decode(d, v.options);
206  break;
207 
208  default:
209  break;
210  }
211  }
212  }
213  else
214  {
215  ::avro::decode(d, v.joinTableName);
216  ::avro::decode(d, v.tableNames);
217  ::avro::decode(d, v.columnNames);
218  ::avro::decode(d, v.expressions);
219  ::avro::decode(d, v.options);
220  }
221  }
222  };
223 }
224 
225 namespace gpudb
226 {
227 
237  {
238 
244  joinTableName(std::string()),
245  count(int64_t())
246  {
247  }
248 
249  std::string joinTableName;
250  int64_t count;
251  };
252 }
253 
254 namespace avro
255 {
256  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
257  {
258  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
259  {
260  ::avro::encode(e, v.joinTableName);
261  ::avro::encode(e, v.count);
262  }
263 
264  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
265  {
266  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
267  {
268  const std::vector<size_t> fo = rd->fieldOrder();
269 
270  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
271  {
272  switch (*it)
273  {
274  case 0:
275  ::avro::decode(d, v.joinTableName);
276  break;
277 
278  case 1:
279  ::avro::decode(d, v.count);
280  break;
281 
282  default:
283  break;
284  }
285  }
286  }
287  else
288  {
289  ::avro::decode(d, v.joinTableName);
290  ::avro::decode(d, v.count);
291  }
292  }
293  };
294 }
295 
296 #endif
std::vector< std::string > columnNames
std::map< std::string, std::string > options
std::vector< std::string > expressions
A set of input parameters for createJoinTable(const CreateJoinTableRequest&) 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 createJoinTable(const CreateJoinTableRequest&) const.
CreateJoinTableRequest()
Constructs a CreateJoinTableRequest object with default parameter values.
std::vector< std::string > tableNames