GPUdb C++ API  Version 7.2.3.0
admin_repair_table.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ADMIN_REPAIR_TABLE_H__
7 #define __ADMIN_REPAIR_TABLE_H__
8 
9 namespace gpudb
10 {
20  {
26  tableNames(std::vector<std::string>()),
27  tableTypes(std::map<std::string, std::string>()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
91  AdminRepairTableRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& tableTypes_, const std::map<std::string, std::string>& options_):
92  tableNames( tableNames_ ),
93  tableTypes( tableTypes_ ),
94  options( options_ )
95  {
96  }
97 
101  std::vector<std::string> tableNames;
102 
106  std::map<std::string, std::string> tableTypes;
107 
147  std::map<std::string, std::string> options;
148  };
149 } // end namespace gpudb
150 
151 namespace avro
152 {
153  template<> struct codec_traits<gpudb::AdminRepairTableRequest>
154  {
155  static void encode(Encoder& e, const gpudb::AdminRepairTableRequest& v)
156  {
157  ::avro::encode(e, v.tableNames);
158  ::avro::encode(e, v.tableTypes);
159  ::avro::encode(e, v.options);
160  }
161 
162  static void decode(Decoder& d, gpudb::AdminRepairTableRequest& v)
163  {
164  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
165  {
166  const std::vector<size_t> fo = rd->fieldOrder();
167 
168  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
169  {
170  switch (*it)
171  {
172  case 0:
173  ::avro::decode(d, v.tableNames);
174  break;
175 
176  case 1:
177  ::avro::decode(d, v.tableTypes);
178  break;
179 
180  case 2:
181  ::avro::decode(d, v.options);
182  break;
183 
184  default:
185  break;
186  }
187  }
188  }
189  else
190  {
191  ::avro::decode(d, v.tableNames);
192  ::avro::decode(d, v.tableTypes);
193  ::avro::decode(d, v.options);
194  }
195  }
196  };
197 } // end namespace avro
198 
199 namespace gpudb
200 {
207  {
213  tableNames(std::vector<std::string>()),
214  repairStatus(std::vector<std::string>()),
215  info(std::map<std::string, std::string>())
216  {
217  }
218 
222  std::vector<std::string> tableNames;
223 
227  std::vector<std::string> repairStatus;
228 
232  std::map<std::string, std::string> info;
233  };
234 } // end namespace gpudb
235 
236 namespace avro
237 {
238  template<> struct codec_traits<gpudb::AdminRepairTableResponse>
239  {
240  static void encode(Encoder& e, const gpudb::AdminRepairTableResponse& v)
241  {
242  ::avro::encode(e, v.tableNames);
243  ::avro::encode(e, v.repairStatus);
244  ::avro::encode(e, v.info);
245  }
246 
247  static void decode(Decoder& d, gpudb::AdminRepairTableResponse& v)
248  {
249  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
250  {
251  const std::vector<size_t> fo = rd->fieldOrder();
252 
253  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
254  {
255  switch (*it)
256  {
257  case 0:
258  ::avro::decode(d, v.tableNames);
259  break;
260 
261  case 1:
262  ::avro::decode(d, v.repairStatus);
263  break;
264 
265  case 2:
266  ::avro::decode(d, v.info);
267  break;
268 
269  default:
270  break;
271  }
272  }
273  }
274  else
275  {
276  ::avro::decode(d, v.tableNames);
277  ::avro::decode(d, v.repairStatus);
278  ::avro::decode(d, v.info);
279  }
280  }
281  };
282 } // end namespace avro
283 
284 #endif // __ADMIN_REPAIR_TABLE_H__
AdminRepairTableResponse()
Constructs an AdminRepairTableResponse object with default parameters.
A set of results returned by GPUdb::adminRepairTable.
std::map< std::string, std::string > info
Additional information.
AdminRepairTableRequest()
Constructs an AdminRepairTableRequest object with default parameters.
std::vector< std::string > tableNames
List of tables to query.
AdminRepairTableRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &tableTypes_, const std::map< std::string, std::string > &options_)
Constructs an AdminRepairTableRequest object with the specified parameters.
std::map< std::string, std::string > tableTypes
internal: type_id per table.
A set of parameters for GPUdb::adminRepairTable.
std::vector< std::string > repairStatus
List of repair status by table.
std::vector< std::string > tableNames
List of repaired tables.
std::map< std::string, std::string > options
Optional parameters.