GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_table_monitor.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_TABLE_MONITOR_H__
7 #define __CREATE_TABLE_MONITOR_H__
8 
9 namespace gpudb
10 {
11 
37  {
38 
44  tableName(std::string()),
45  options(std::map<std::string, std::string>())
46  {
47  }
48 
138  CreateTableMonitorRequest(const std::string& tableName_, const std::map<std::string, std::string>& options_):
139  tableName( tableName_ ),
140  options( options_ )
141  {
142  }
143 
144  std::string tableName;
145  std::map<std::string, std::string> options;
146  };
147 }
148 
149 namespace avro
150 {
151  template<> struct codec_traits<gpudb::CreateTableMonitorRequest>
152  {
153  static void encode(Encoder& e, const gpudb::CreateTableMonitorRequest& v)
154  {
155  ::avro::encode(e, v.tableName);
156  ::avro::encode(e, v.options);
157  }
158 
159  static void decode(Decoder& d, gpudb::CreateTableMonitorRequest& v)
160  {
161  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
162  {
163  const std::vector<size_t> fo = rd->fieldOrder();
164 
165  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166  {
167  switch (*it)
168  {
169  case 0:
170  ::avro::decode(d, v.tableName);
171  break;
172 
173  case 1:
174  ::avro::decode(d, v.options);
175  break;
176 
177  default:
178  break;
179  }
180  }
181  }
182  else
183  {
184  ::avro::decode(d, v.tableName);
185  ::avro::decode(d, v.options);
186  }
187  }
188  };
189 }
190 
191 namespace gpudb
192 {
193 
219  {
220 
226  topicId(std::string()),
227  tableName(std::string()),
228  typeSchema(std::string()),
229  info(std::map<std::string, std::string>())
230  {
231  }
232 
233  std::string topicId;
234  std::string tableName;
235  std::string typeSchema;
236  std::map<std::string, std::string> info;
237  };
238 }
239 
240 namespace avro
241 {
242  template<> struct codec_traits<gpudb::CreateTableMonitorResponse>
243  {
244  static void encode(Encoder& e, const gpudb::CreateTableMonitorResponse& v)
245  {
246  ::avro::encode(e, v.topicId);
247  ::avro::encode(e, v.tableName);
248  ::avro::encode(e, v.typeSchema);
249  ::avro::encode(e, v.info);
250  }
251 
252  static void decode(Decoder& d, gpudb::CreateTableMonitorResponse& v)
253  {
254  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
255  {
256  const std::vector<size_t> fo = rd->fieldOrder();
257 
258  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
259  {
260  switch (*it)
261  {
262  case 0:
263  ::avro::decode(d, v.topicId);
264  break;
265 
266  case 1:
267  ::avro::decode(d, v.tableName);
268  break;
269 
270  case 2:
271  ::avro::decode(d, v.typeSchema);
272  break;
273 
274  case 3:
275  ::avro::decode(d, v.info);
276  break;
277 
278  default:
279  break;
280  }
281  }
282  }
283  else
284  {
285  ::avro::decode(d, v.topicId);
286  ::avro::decode(d, v.tableName);
287  ::avro::decode(d, v.typeSchema);
288  ::avro::decode(d, v.info);
289  }
290  }
291  };
292 }
293 
294 #endif
std::map< std::string, std::string > options
A set of output parameters for const.
CreateTableMonitorResponse()
Constructs a CreateTableMonitorResponse object with default parameter values.
A set of input parameters for const.
CreateTableMonitorRequest()
Constructs a CreateTableMonitorRequest object with default parameter values.
CreateTableMonitorRequest(const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a CreateTableMonitorRequest object with the specified parameters.
std::map< std::string, std::string > info