GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_verify_db.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 __ADMIN_VERIFY_DB_H__
7 #define __ADMIN_VERIFY_DB_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
122  AdminVerifyDbRequest(const std::map<std::string, std::string>& options_):
123  options( options_ )
124  {
125  }
126 
127  std::map<std::string, std::string> options;
128  };
129 }
130 
131 namespace avro
132 {
133  template<> struct codec_traits<gpudb::AdminVerifyDbRequest>
134  {
135  static void encode(Encoder& e, const gpudb::AdminVerifyDbRequest& v)
136  {
137  ::avro::encode(e, v.options);
138  }
139 
140  static void decode(Decoder& d, gpudb::AdminVerifyDbRequest& 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.options);
152  break;
153 
154  default:
155  break;
156  }
157  }
158  }
159  else
160  {
161  ::avro::decode(d, v.options);
162  }
163  }
164  };
165 }
166 
167 namespace gpudb
168 {
169 
179  {
180 
186  verifiedOk(bool()),
187  errorList(std::vector<std::string>()),
188  orphanedTablesTotalSize(int64_t()),
189  info(std::map<std::string, std::string>())
190  {
191  }
192 
194  std::vector<std::string> errorList;
196  std::map<std::string, std::string> info;
197  };
198 }
199 
200 namespace avro
201 {
202  template<> struct codec_traits<gpudb::AdminVerifyDbResponse>
203  {
204  static void encode(Encoder& e, const gpudb::AdminVerifyDbResponse& v)
205  {
206  ::avro::encode(e, v.verifiedOk);
207  ::avro::encode(e, v.errorList);
208  ::avro::encode(e, v.orphanedTablesTotalSize);
209  ::avro::encode(e, v.info);
210  }
211 
212  static void decode(Decoder& d, gpudb::AdminVerifyDbResponse& v)
213  {
214  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
215  {
216  const std::vector<size_t> fo = rd->fieldOrder();
217 
218  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
219  {
220  switch (*it)
221  {
222  case 0:
223  ::avro::decode(d, v.verifiedOk);
224  break;
225 
226  case 1:
227  ::avro::decode(d, v.errorList);
228  break;
229 
230  case 2:
231  ::avro::decode(d, v.orphanedTablesTotalSize);
232  break;
233 
234  case 3:
235  ::avro::decode(d, v.info);
236  break;
237 
238  default:
239  break;
240  }
241  }
242  }
243  else
244  {
245  ::avro::decode(d, v.verifiedOk);
246  ::avro::decode(d, v.errorList);
247  ::avro::decode(d, v.orphanedTablesTotalSize);
248  ::avro::decode(d, v.info);
249  }
250  }
251  };
252 }
253 
254 #endif
A set of output parameters for const.
AdminVerifyDbResponse()
Constructs an AdminVerifyDbResponse object with default parameter values.
AdminVerifyDbRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminVerifyDbRequest object with the specified parameters.
A set of input parameters for const.
std::vector< std::string > errorList
std::map< std::string, std::string > options
std::map< std::string, std::string > info
AdminVerifyDbRequest()
Constructs an AdminVerifyDbRequest object with default parameter values.