GPUdb C++ API  Version 7.2.2.4
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  options(std::map<std::string, std::string>())
28  {
29  }
30 
84  AdminRepairTableRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
85  tableNames( tableNames_ ),
86  options( options_ )
87  {
88  }
89 
93  std::vector<std::string> tableNames;
94 
131  std::map<std::string, std::string> options;
132  };
133 } // end namespace gpudb
134 
135 namespace avro
136 {
137  template<> struct codec_traits<gpudb::AdminRepairTableRequest>
138  {
139  static void encode(Encoder& e, const gpudb::AdminRepairTableRequest& v)
140  {
141  ::avro::encode(e, v.tableNames);
142  ::avro::encode(e, v.options);
143  }
144 
145  static void decode(Decoder& d, gpudb::AdminRepairTableRequest& v)
146  {
147  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
148  {
149  const std::vector<size_t> fo = rd->fieldOrder();
150 
151  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
152  {
153  switch (*it)
154  {
155  case 0:
156  ::avro::decode(d, v.tableNames);
157  break;
158 
159  case 1:
160  ::avro::decode(d, v.options);
161  break;
162 
163  default:
164  break;
165  }
166  }
167  }
168  else
169  {
170  ::avro::decode(d, v.tableNames);
171  ::avro::decode(d, v.options);
172  }
173  }
174  };
175 } // end namespace avro
176 
177 namespace gpudb
178 {
185  {
191  tableNames(std::vector<std::string>()),
192  repairStatus(std::vector<std::string>()),
193  info(std::map<std::string, std::string>())
194  {
195  }
196 
200  std::vector<std::string> tableNames;
201 
205  std::vector<std::string> repairStatus;
206 
210  std::map<std::string, std::string> info;
211  };
212 } // end namespace gpudb
213 
214 namespace avro
215 {
216  template<> struct codec_traits<gpudb::AdminRepairTableResponse>
217  {
218  static void encode(Encoder& e, const gpudb::AdminRepairTableResponse& v)
219  {
220  ::avro::encode(e, v.tableNames);
221  ::avro::encode(e, v.repairStatus);
222  ::avro::encode(e, v.info);
223  }
224 
225  static void decode(Decoder& d, gpudb::AdminRepairTableResponse& v)
226  {
227  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
228  {
229  const std::vector<size_t> fo = rd->fieldOrder();
230 
231  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
232  {
233  switch (*it)
234  {
235  case 0:
236  ::avro::decode(d, v.tableNames);
237  break;
238 
239  case 1:
240  ::avro::decode(d, v.repairStatus);
241  break;
242 
243  case 2:
244  ::avro::decode(d, v.info);
245  break;
246 
247  default:
248  break;
249  }
250  }
251  }
252  else
253  {
254  ::avro::decode(d, v.tableNames);
255  ::avro::decode(d, v.repairStatus);
256  ::avro::decode(d, v.info);
257  }
258  }
259  };
260 } // end namespace avro
261 
262 #endif // __ADMIN_REPAIR_TABLE_H__
AdminRepairTableResponse()
Constructs an AdminRepairTableResponse object with default parameters.
A set of results returned by GPUdb::adminRepairTable.
AdminRepairTableRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs an AdminRepairTableRequest object with the specified parameters.
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.
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.