GPUdb C++ API  Version 7.2.3.0
check_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 __CHECK_TABLE_H__
7 #define __CHECK_TABLE_H__
8 
9 namespace gpudb
10 {
25  {
30  tableNames(std::vector<std::string>()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
74  CheckTableRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
75  tableNames( tableNames_ ),
76  options( options_ )
77  {
78  }
79 
83  std::vector<std::string> tableNames;
84 
111  std::map<std::string, std::string> options;
112  };
113 } // end namespace gpudb
114 
115 namespace avro
116 {
117  template<> struct codec_traits<gpudb::CheckTableRequest>
118  {
119  static void encode(Encoder& e, const gpudb::CheckTableRequest& v)
120  {
121  ::avro::encode(e, v.tableNames);
122  ::avro::encode(e, v.options);
123  }
124 
125  static void decode(Decoder& d, gpudb::CheckTableRequest& v)
126  {
127  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
128  {
129  const std::vector<size_t> fo = rd->fieldOrder();
130 
131  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
132  {
133  switch (*it)
134  {
135  case 0:
136  ::avro::decode(d, v.tableNames);
137  break;
138 
139  case 1:
140  ::avro::decode(d, v.options);
141  break;
142 
143  default:
144  break;
145  }
146  }
147  }
148  else
149  {
150  ::avro::decode(d, v.tableNames);
151  ::avro::decode(d, v.options);
152  }
153  }
154  };
155 } // end namespace avro
156 
157 namespace gpudb
158 {
164  {
169  tableNames(std::vector<std::string>()),
170  ids(std::vector<std::string>()),
171  locations(std::vector<std::string>()),
172  errors(std::vector<std::string>()),
173  info(std::map<std::string, std::string>())
174  {
175  }
176 
177  std::vector<std::string> tableNames;
178  std::vector<std::string> ids;
179  std::vector<std::string> locations;
180  std::vector<std::string> errors;
181 
185  std::map<std::string, std::string> info;
186  };
187 } // end namespace gpudb
188 
189 namespace avro
190 {
191  template<> struct codec_traits<gpudb::CheckTableResponse>
192  {
193  static void encode(Encoder& e, const gpudb::CheckTableResponse& v)
194  {
195  ::avro::encode(e, v.tableNames);
196  ::avro::encode(e, v.ids);
197  ::avro::encode(e, v.locations);
198  ::avro::encode(e, v.errors);
199  ::avro::encode(e, v.info);
200  }
201 
202  static void decode(Decoder& d, gpudb::CheckTableResponse& v)
203  {
204  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
205  {
206  const std::vector<size_t> fo = rd->fieldOrder();
207 
208  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
209  {
210  switch (*it)
211  {
212  case 0:
213  ::avro::decode(d, v.tableNames);
214  break;
215 
216  case 1:
217  ::avro::decode(d, v.ids);
218  break;
219 
220  case 2:
221  ::avro::decode(d, v.locations);
222  break;
223 
224  case 3:
225  ::avro::decode(d, v.errors);
226  break;
227 
228  case 4:
229  ::avro::decode(d, v.info);
230  break;
231 
232  default:
233  break;
234  }
235  }
236  }
237  else
238  {
239  ::avro::decode(d, v.tableNames);
240  ::avro::decode(d, v.ids);
241  ::avro::decode(d, v.locations);
242  ::avro::decode(d, v.errors);
243  ::avro::decode(d, v.info);
244  }
245  }
246  };
247 } // end namespace avro
248 
249 #endif // __CHECK_TABLE_H__
CheckTableRequest()
Constructs a CheckTableRequest object with default parameters.
Definition: check_table.h:29
std::map< std::string, std::string > info
Additional information.
Definition: check_table.h:185
std::vector< std::string > tableNames
List of tables to query.
Definition: check_table.h:83
std::vector< std::string > tableNames
Definition: check_table.h:177
CheckTableRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a CheckTableRequest object with the specified parameters.
Definition: check_table.h:74
CheckTableResponse()
Constructs a CheckTableResponse object with default parameters.
Definition: check_table.h:168
A set of parameters for GPUdb::checkTable.
Definition: check_table.h:24
std::vector< std::string > ids
Definition: check_table.h:178
std::map< std::string, std::string > options
Optional parameters.
Definition: check_table.h:111
std::vector< std::string > locations
Definition: check_table.h:179
std::vector< std::string > errors
Definition: check_table.h:180
A set of results returned by GPUdb::checkTable.
Definition: check_table.h:163