GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_proc.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 __CREATE_PROC_H__
7 #define __CREATE_PROC_H__
8 
9 namespace gpudb
10 {
11 
22  {
23 
28  procName(std::string()),
29  executionMode(std::string()),
30  files(std::map<std::string, std::vector<uint8_t> >()),
31  command(std::string()),
32  args(std::vector<std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
114  CreateProcRequest(const std::string& procName_, const std::string& executionMode_, const std::map<std::string, std::vector<uint8_t> >& files_, const std::string& command_, const std::vector<std::string>& args_, const std::map<std::string, std::string>& options_):
115  procName( procName_ ),
116  executionMode( executionMode_ ),
117  files( files_ ),
118  command( command_ ),
119  args( args_ ),
120  options( options_ )
121  {
122  }
123 
124  std::string procName;
125  std::string executionMode;
126  std::map<std::string, std::vector<uint8_t> > files;
127  std::string command;
128  std::vector<std::string> args;
129  std::map<std::string, std::string> options;
130  };
131 }
132 
133 namespace avro
134 {
135  template<> struct codec_traits<gpudb::CreateProcRequest>
136  {
137  static void encode(Encoder& e, const gpudb::CreateProcRequest& v)
138  {
139  ::avro::encode(e, v.procName);
140  ::avro::encode(e, v.executionMode);
141  ::avro::encode(e, v.files);
142  ::avro::encode(e, v.command);
143  ::avro::encode(e, v.args);
144  ::avro::encode(e, v.options);
145  }
146 
147  static void decode(Decoder& d, gpudb::CreateProcRequest& v)
148  {
149  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
150  {
151  const std::vector<size_t> fo = rd->fieldOrder();
152 
153  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
154  {
155  switch (*it)
156  {
157  case 0:
158  ::avro::decode(d, v.procName);
159  break;
160 
161  case 1:
162  ::avro::decode(d, v.executionMode);
163  break;
164 
165  case 2:
166  ::avro::decode(d, v.files);
167  break;
168 
169  case 3:
170  ::avro::decode(d, v.command);
171  break;
172 
173  case 4:
174  ::avro::decode(d, v.args);
175  break;
176 
177  case 5:
178  ::avro::decode(d, v.options);
179  break;
180 
181  default:
182  break;
183  }
184  }
185  }
186  else
187  {
188  ::avro::decode(d, v.procName);
189  ::avro::decode(d, v.executionMode);
190  ::avro::decode(d, v.files);
191  ::avro::decode(d, v.command);
192  ::avro::decode(d, v.args);
193  ::avro::decode(d, v.options);
194  }
195  }
196  };
197 }
198 
199 namespace gpudb
200 {
201 
212  {
213 
219  procName(std::string()),
220  info(std::map<std::string, std::string>())
221  {
222  }
223 
224  std::string procName;
225  std::map<std::string, std::string> info;
226  };
227 }
228 
229 namespace avro
230 {
231  template<> struct codec_traits<gpudb::CreateProcResponse>
232  {
233  static void encode(Encoder& e, const gpudb::CreateProcResponse& v)
234  {
235  ::avro::encode(e, v.procName);
236  ::avro::encode(e, v.info);
237  }
238 
239  static void decode(Decoder& d, gpudb::CreateProcResponse& v)
240  {
241  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
242  {
243  const std::vector<size_t> fo = rd->fieldOrder();
244 
245  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
246  {
247  switch (*it)
248  {
249  case 0:
250  ::avro::decode(d, v.procName);
251  break;
252 
253  case 1:
254  ::avro::decode(d, v.info);
255  break;
256 
257  default:
258  break;
259  }
260  }
261  }
262  else
263  {
264  ::avro::decode(d, v.procName);
265  ::avro::decode(d, v.info);
266  }
267  }
268  };
269 }
270 
271 #endif
std::map< std::string, std::vector< uint8_t > > files
Definition: create_proc.h:126
CreateProcResponse()
Constructs a CreateProcResponse object with default parameter values.
Definition: create_proc.h:218
std::vector< std::string > args
Definition: create_proc.h:128
CreateProcRequest()
Constructs a CreateProcRequest object with default parameter values.
Definition: create_proc.h:27
A set of output parameters for const.
Definition: create_proc.h:211
CreateProcRequest(const std::string &procName_, const std::string &executionMode_, const std::map< std::string, std::vector< uint8_t > > &files_, const std::string &command_, const std::vector< std::string > &args_, const std::map< std::string, std::string > &options_)
Constructs a CreateProcRequest object with the specified parameters.
Definition: create_proc.h:114
std::map< std::string, std::string > options
Definition: create_proc.h:129
A set of input parameters for const.
Definition: create_proc.h:21
std::map< std::string, std::string > info
Definition: create_proc.h:225