GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
execute_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 __EXECUTE_PROC_H__
7 #define __EXECUTE_PROC_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  procName(std::string()),
28  params(std::map<std::string, std::string>()),
29  binParams(std::map<std::string, std::vector<uint8_t> >()),
30  inputTableNames(std::vector<std::string>()),
31  inputColumnNames(std::map<std::string, std::vector<std::string> >()),
32  outputTableNames(std::vector<std::string>()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
107  ExecuteProcRequest(const std::string& procName_, const std::map<std::string, std::string>& params_, const std::map<std::string, std::vector<uint8_t> >& binParams_, const std::vector<std::string>& inputTableNames_, const std::map<std::string, std::vector<std::string> >& inputColumnNames_, const std::vector<std::string>& outputTableNames_, const std::map<std::string, std::string>& options_):
108  procName( procName_ ),
109  params( params_ ),
110  binParams( binParams_ ),
111  inputTableNames( inputTableNames_ ),
112  inputColumnNames( inputColumnNames_ ),
113  outputTableNames( outputTableNames_ ),
114  options( options_ )
115  {
116  }
117 
118  std::string procName;
119  std::map<std::string, std::string> params;
120  std::map<std::string, std::vector<uint8_t> > binParams;
121  std::vector<std::string> inputTableNames;
122  std::map<std::string, std::vector<std::string> > inputColumnNames;
123  std::vector<std::string> outputTableNames;
124  std::map<std::string, std::string> options;
125  };
126 }
127 
128 namespace avro
129 {
130  template<> struct codec_traits<gpudb::ExecuteProcRequest>
131  {
132  static void encode(Encoder& e, const gpudb::ExecuteProcRequest& v)
133  {
134  ::avro::encode(e, v.procName);
135  ::avro::encode(e, v.params);
136  ::avro::encode(e, v.binParams);
137  ::avro::encode(e, v.inputTableNames);
138  ::avro::encode(e, v.inputColumnNames);
139  ::avro::encode(e, v.outputTableNames);
140  ::avro::encode(e, v.options);
141  }
142 
143  static void decode(Decoder& d, gpudb::ExecuteProcRequest& v)
144  {
145  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
146  {
147  const std::vector<size_t> fo = rd->fieldOrder();
148 
149  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
150  {
151  switch (*it)
152  {
153  case 0:
154  ::avro::decode(d, v.procName);
155  break;
156 
157  case 1:
158  ::avro::decode(d, v.params);
159  break;
160 
161  case 2:
162  ::avro::decode(d, v.binParams);
163  break;
164 
165  case 3:
166  ::avro::decode(d, v.inputTableNames);
167  break;
168 
169  case 4:
170  ::avro::decode(d, v.inputColumnNames);
171  break;
172 
173  case 5:
174  ::avro::decode(d, v.outputTableNames);
175  break;
176 
177  case 6:
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.params);
190  ::avro::decode(d, v.binParams);
191  ::avro::decode(d, v.inputTableNames);
192  ::avro::decode(d, v.inputColumnNames);
193  ::avro::decode(d, v.outputTableNames);
194  ::avro::decode(d, v.options);
195  }
196  }
197  };
198 }
199 
200 namespace gpudb
201 {
202 
211  {
212 
218  runId(std::string())
219  {
220  }
221 
222  std::string runId;
223  };
224 }
225 
226 namespace avro
227 {
228  template<> struct codec_traits<gpudb::ExecuteProcResponse>
229  {
230  static void encode(Encoder& e, const gpudb::ExecuteProcResponse& v)
231  {
232  ::avro::encode(e, v.runId);
233  }
234 
235  static void decode(Decoder& d, gpudb::ExecuteProcResponse& v)
236  {
237  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
238  {
239  const std::vector<size_t> fo = rd->fieldOrder();
240 
241  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
242  {
243  switch (*it)
244  {
245  case 0:
246  ::avro::decode(d, v.runId);
247  break;
248 
249  default:
250  break;
251  }
252  }
253  }
254  else
255  {
256  ::avro::decode(d, v.runId);
257  }
258  }
259  };
260 }
261 
262 #endif
ExecuteProcRequest()
Constructs an ExecuteProcRequest object with default parameter values.
Definition: execute_proc.h:26
std::map< std::string, std::string > params
Definition: execute_proc.h:119
A set of input parameters for const.
Definition: execute_proc.h:19
std::vector< std::string > outputTableNames
Definition: execute_proc.h:123
std::map< std::string, std::vector< uint8_t > > binParams
Definition: execute_proc.h:120
std::map< std::string, std::vector< std::string > > inputColumnNames
Definition: execute_proc.h:122
A set of output parameters for const.
Definition: execute_proc.h:210
std::map< std::string, std::string > options
Definition: execute_proc.h:124
std::vector< std::string > inputTableNames
Definition: execute_proc.h:121
ExecuteProcRequest(const std::string &procName_, const std::map< std::string, std::string > &params_, const std::map< std::string, std::vector< uint8_t > > &binParams_, const std::vector< std::string > &inputTableNames_, const std::map< std::string, std::vector< std::string > > &inputColumnNames_, const std::vector< std::string > &outputTableNames_, const std::map< std::string, std::string > &options_)
Constructs an ExecuteProcRequest object with the specified parameters.
Definition: execute_proc.h:107
ExecuteProcResponse()
Constructs an ExecuteProcResponse object with default parameter values.
Definition: execute_proc.h:217