GPUdb C++ API  Version 7.2.3.0
clear_tables.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 __CLEAR_TABLES_H__
7 #define __CLEAR_TABLES_H__
8 
9 namespace gpudb
10 {
22  {
27  tableNames(std::vector<std::string>()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
72  ClearTablesRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
73  tableNames( tableNames_ ),
74  options( options_ )
75  {
76  }
77 
87  std::vector<std::string> tableNames;
88 
108  std::map<std::string, std::string> options;
109  };
110 } // end namespace gpudb
111 
112 namespace avro
113 {
114  template<> struct codec_traits<gpudb::ClearTablesRequest>
115  {
116  static void encode(Encoder& e, const gpudb::ClearTablesRequest& v)
117  {
118  ::avro::encode(e, v.tableNames);
119  ::avro::encode(e, v.options);
120  }
121 
122  static void decode(Decoder& d, gpudb::ClearTablesRequest& v)
123  {
124  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
125  {
126  const std::vector<size_t> fo = rd->fieldOrder();
127 
128  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
129  {
130  switch (*it)
131  {
132  case 0:
133  ::avro::decode(d, v.tableNames);
134  break;
135 
136  case 1:
137  ::avro::decode(d, v.options);
138  break;
139 
140  default:
141  break;
142  }
143  }
144  }
145  else
146  {
147  ::avro::decode(d, v.tableNames);
148  ::avro::decode(d, v.options);
149  }
150  }
151  };
152 } // end namespace avro
153 
154 namespace gpudb
155 {
162  {
167  tables(std::map<std::string, std::string>()),
168  info(std::map<std::string, std::string>())
169  {
170  }
171 
177  std::map<std::string, std::string> tables;
178 
182  std::map<std::string, std::string> info;
183  };
184 } // end namespace gpudb
185 
186 namespace avro
187 {
188  template<> struct codec_traits<gpudb::ClearTablesResponse>
189  {
190  static void encode(Encoder& e, const gpudb::ClearTablesResponse& v)
191  {
192  ::avro::encode(e, v.tables);
193  ::avro::encode(e, v.info);
194  }
195 
196  static void decode(Decoder& d, gpudb::ClearTablesResponse& v)
197  {
198  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
199  {
200  const std::vector<size_t> fo = rd->fieldOrder();
201 
202  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
203  {
204  switch (*it)
205  {
206  case 0:
207  ::avro::decode(d, v.tables);
208  break;
209 
210  case 1:
211  ::avro::decode(d, v.info);
212  break;
213 
214  default:
215  break;
216  }
217  }
218  }
219  else
220  {
221  ::avro::decode(d, v.tables);
222  ::avro::decode(d, v.info);
223  }
224  }
225  };
226 } // end namespace avro
227 
228 #endif // __CLEAR_TABLES_H__
std::map< std::string, std::string > options
Optional parameters.
Definition: clear_tables.h:108
A set of parameters for GPUdb::clearTables.
Definition: clear_tables.h:21
A set of results returned by GPUdb::clearTables.
Definition: clear_tables.h:161
ClearTablesRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ClearTablesRequest object with the specified parameters.
Definition: clear_tables.h:72
ClearTablesResponse()
Constructs a ClearTablesResponse object with default parameters.
Definition: clear_tables.h:166
std::map< std::string, std::string > info
Additional information.
Definition: clear_tables.h:182
std::map< std::string, std::string > tables
For each table in tableNames, any error from the clear operation, or an empty string if successful.
Definition: clear_tables.h:177
ClearTablesRequest()
Constructs a ClearTablesRequest object with default parameters.
Definition: clear_tables.h:26
std::vector< std::string > tableNames
Names of the tables to be cleared, in [ schema_name. ]table_name format, using standard name resoluti...
Definition: clear_tables.h:87