GPUdb C++ API  Version 5.2.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  aliases(std::vector<std::string>()),
31  expression(std::string()),
32  expressions(std::vector<std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
89  CreateJoinTableRequest(const std::string& joinTableName, const std::vector<std::string>& tableNames, const std::vector<std::string>& aliases, const std::string& expression, const std::vector<std::string>& expressions, const std::map<std::string, std::string>& options):
90  joinTableName(joinTableName),
91  tableNames(tableNames),
92  aliases(aliases),
93  expression(expression),
94  expressions(expressions),
95  options(options)
96  {
97  }
98 
99  std::string joinTableName;
100  std::vector<std::string> tableNames;
101  std::vector<std::string> aliases;
102  std::string expression;
103  std::vector<std::string> expressions;
104  std::map<std::string, std::string> options;
105  };
106 }
107 
108 namespace avro
109 {
110  template<> struct codec_traits<gpudb::CreateJoinTableRequest>
111  {
112  static void encode(Encoder& e, const gpudb::CreateJoinTableRequest& v)
113  {
114  ::avro::encode(e, v.joinTableName);
115  ::avro::encode(e, v.tableNames);
116  ::avro::encode(e, v.aliases);
117  ::avro::encode(e, v.expression);
118  ::avro::encode(e, v.expressions);
119  ::avro::encode(e, v.options);
120  }
121 
122  static void decode(Decoder& d, gpudb::CreateJoinTableRequest& v)
123  {
124  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
125  {
126  const std::vector<size_t> fo = rd->fieldOrder();
127 
128  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
129  {
130  switch (*it)
131  {
132  case 0:
133  ::avro::decode(d, v.joinTableName);
134  break;
135 
136  case 1:
137  ::avro::decode(d, v.tableNames);
138  break;
139 
140  case 2:
141  ::avro::decode(d, v.aliases);
142  break;
143 
144  case 3:
145  ::avro::decode(d, v.expression);
146  break;
147 
148  case 4:
149  ::avro::decode(d, v.expressions);
150  break;
151 
152  case 5:
153  ::avro::decode(d, v.options);
154  break;
155 
156  default:
157  break;
158  }
159  }
160  }
161  else
162  {
163  ::avro::decode(d, v.joinTableName);
164  ::avro::decode(d, v.tableNames);
165  ::avro::decode(d, v.aliases);
166  ::avro::decode(d, v.expression);
167  ::avro::decode(d, v.expressions);
168  ::avro::decode(d, v.options);
169  }
170  }
171  };
172 }
173 
174 namespace gpudb
175 {
176 
186  {
187 
193  joinTableName(std::string()),
194  count(int64_t())
195  {
196  }
197 
198  std::string joinTableName;
199  int64_t count;
200  };
201 }
202 
203 namespace avro
204 {
205  template<> struct codec_traits<gpudb::CreateJoinTableResponse>
206  {
207  static void encode(Encoder& e, const gpudb::CreateJoinTableResponse& v)
208  {
209  ::avro::encode(e, v.joinTableName);
210  ::avro::encode(e, v.count);
211  }
212 
213  static void decode(Decoder& d, gpudb::CreateJoinTableResponse& v)
214  {
215  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
216  {
217  const std::vector<size_t> fo = rd->fieldOrder();
218 
219  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
220  {
221  switch (*it)
222  {
223  case 0:
224  ::avro::decode(d, v.joinTableName);
225  break;
226 
227  case 1:
228  ::avro::decode(d, v.count);
229  break;
230 
231  default:
232  break;
233  }
234  }
235  }
236  else
237  {
238  ::avro::decode(d, v.joinTableName);
239  ::avro::decode(d, v.count);
240  }
241  }
242  };
243 }
244 
245 #endif
std::map< std::string, std::string > options
std::vector< std::string > aliases
CreateJoinTableRequest(const std::string &joinTableName, const std::vector< std::string > &tableNames, const std::vector< std::string > &aliases, const std::string &expression, const std::vector< std::string > &expressions, const std::map< std::string, std::string > &options)
Constructs a CreateJoinTableRequest object with the specified parameters.
std::vector< std::string > expressions
A set of input parameters for createJoinTable(const CreateJoinTableRequest&) const.
CreateJoinTableResponse()
Constructs a CreateJoinTableResponse object with default parameter values.
A set of output parameters for createJoinTable(const CreateJoinTableRequest&) const.
CreateJoinTableRequest()
Constructs a CreateJoinTableRequest object with default parameter values.
std::vector< std::string > tableNames