GPUdb C++ API  Version 7.0.19.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 
110  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_):
111  joinTableName( joinTableName_ ),
112  tableNames( tableNames_ ),
113  columnNames( columnNames_ ),
114  expressions( expressions_ ),
115  options( options_ )
116  {
117  }
118 
119  std::string joinTableName;
120  std::vector<std::string> tableNames;
121  std::vector<std::string> columnNames;
122  std::vector<std::string> expressions;
123  std::map<std::string, std::string> options;
124  };
125 }
126 
127 namespace avro
128 {
129  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
130  {
131  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
132  {
133  ::avro::encode(e, v.joinTableName);
134  ::avro::encode(e, v.tableNames);
135  ::avro::encode(e, v.columnNames);
136  ::avro::encode(e, v.expressions);
137  ::avro::encode(e, v.options);
138  }
139 
140  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
141  {
142  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
143  {
144  const std::vector<size_t> fo = rd->fieldOrder();
145 
146  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
147  {
148  switch (*it)
149  {
150  case 0:
151  ::avro::decode(d, v.joinTableName);
152  break;
153 
154  case 1:
155  ::avro::decode(d, v.tableNames);
156  break;
157 
158  case 2:
159  ::avro::decode(d, v.columnNames);
160  break;
161 
162  case 3:
163  ::avro::decode(d, v.expressions);
164  break;
165 
166  case 4:
167  ::avro::decode(d, v.options);
168  break;
169 
170  default:
171  break;
172  }
173  }
174  }
175  else
176  {
177  ::avro::decode(d, v.joinTableName);
178  ::avro::decode(d, v.tableNames);
179  ::avro::decode(d, v.columnNames);
180  ::avro::decode(d, v.expressions);
181  ::avro::decode(d, v.options);
182  }
183  }
184  };
185 }
186 
187 namespace gpudb
188 {
189 
202  {
203 
209  joinTableName(std::string()),
210  count(int64_t()),
211  info(std::map<std::string, std::string>())
212  {
213  }
214 
215  std::string joinTableName;
216  int64_t count;
217  std::map<std::string, std::string> info;
218  };
219 }
220 
221 namespace avro
222 {
223  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
224  {
225  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
226  {
227  ::avro::encode(e, v.joinTableName);
228  ::avro::encode(e, v.count);
229  ::avro::encode(e, v.info);
230  }
231 
232  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
233  {
234  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
235  {
236  const std::vector<size_t> fo = rd->fieldOrder();
237 
238  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
239  {
240  switch (*it)
241  {
242  case 0:
243  ::avro::decode(d, v.joinTableName);
244  break;
245 
246  case 1:
247  ::avro::decode(d, v.count);
248  break;
249 
250  case 2:
251  ::avro::decode(d, v.info);
252  break;
253 
254  default:
255  break;
256  }
257  }
258  }
259  else
260  {
261  ::avro::decode(d, v.joinTableName);
262  ::avro::decode(d, v.count);
263  ::avro::decode(d, v.info);
264  }
265  }
266  };
267 }
268 
269 #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