GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
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 
138  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_):
139  joinTableName( joinTableName_ ),
140  tableNames( tableNames_ ),
141  columnNames( columnNames_ ),
142  expressions( expressions_ ),
143  options( options_ )
144  {
145  }
146 
147  std::string joinTableName;
148  std::vector<std::string> tableNames;
149  std::vector<std::string> columnNames;
150  std::vector<std::string> expressions;
151  std::map<std::string, std::string> options;
152  };
153 }
154 
155 namespace avro
156 {
157  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
158  {
159  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
160  {
161  ::avro::encode(e, v.joinTableName);
162  ::avro::encode(e, v.tableNames);
163  ::avro::encode(e, v.columnNames);
164  ::avro::encode(e, v.expressions);
165  ::avro::encode(e, v.options);
166  }
167 
168  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
169  {
170  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
171  {
172  const std::vector<size_t> fo = rd->fieldOrder();
173 
174  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
175  {
176  switch (*it)
177  {
178  case 0:
179  ::avro::decode(d, v.joinTableName);
180  break;
181 
182  case 1:
183  ::avro::decode(d, v.tableNames);
184  break;
185 
186  case 2:
187  ::avro::decode(d, v.columnNames);
188  break;
189 
190  case 3:
191  ::avro::decode(d, v.expressions);
192  break;
193 
194  case 4:
195  ::avro::decode(d, v.options);
196  break;
197 
198  default:
199  break;
200  }
201  }
202  }
203  else
204  {
205  ::avro::decode(d, v.joinTableName);
206  ::avro::decode(d, v.tableNames);
207  ::avro::decode(d, v.columnNames);
208  ::avro::decode(d, v.expressions);
209  ::avro::decode(d, v.options);
210  }
211  }
212  };
213 }
214 
215 namespace gpudb
216 {
217 
227  {
228 
234  joinTableName(std::string()),
235  count(int64_t())
236  {
237  }
238 
239  std::string joinTableName;
240  int64_t count;
241  };
242 }
243 
244 namespace avro
245 {
246  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
247  {
248  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
249  {
250  ::avro::encode(e, v.joinTableName);
251  ::avro::encode(e, v.count);
252  }
253 
254  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
255  {
256  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
257  {
258  const std::vector<size_t> fo = rd->fieldOrder();
259 
260  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
261  {
262  switch (*it)
263  {
264  case 0:
265  ::avro::decode(d, v.joinTableName);
266  break;
267 
268  case 1:
269  ::avro::decode(d, v.count);
270  break;
271 
272  default:
273  break;
274  }
275  }
276  }
277  else
278  {
279  ::avro::decode(d, v.joinTableName);
280  ::avro::decode(d, v.count);
281  }
282  }
283  };
284 }
285 
286 #endif
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