GPUdb C++ API  Version 7.2.2.4
show_sql_proc.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 __SHOW_SQL_PROC_H__
7 #define __SHOW_SQL_PROC_H__
8 
9 namespace gpudb
10 {
20  {
25  procedureName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
62  ShowSqlProcRequest(const std::string& procedureName_, const std::map<std::string, std::string>& options_):
63  procedureName( procedureName_ ),
64  options( options_ )
65  {
66  }
67 
73  std::string procedureName;
74 
95  std::map<std::string, std::string> options;
96  };
97 } // end namespace gpudb
98 
99 namespace avro
100 {
101  template<> struct codec_traits<gpudb::ShowSqlProcRequest>
102  {
103  static void encode(Encoder& e, const gpudb::ShowSqlProcRequest& v)
104  {
105  ::avro::encode(e, v.procedureName);
106  ::avro::encode(e, v.options);
107  }
108 
109  static void decode(Decoder& d, gpudb::ShowSqlProcRequest& v)
110  {
111  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
112  {
113  const std::vector<size_t> fo = rd->fieldOrder();
114 
115  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116  {
117  switch (*it)
118  {
119  case 0:
120  ::avro::decode(d, v.procedureName);
121  break;
122 
123  case 1:
124  ::avro::decode(d, v.options);
125  break;
126 
127  default:
128  break;
129  }
130  }
131  }
132  else
133  {
134  ::avro::decode(d, v.procedureName);
135  ::avro::decode(d, v.options);
136  }
137  }
138  };
139 } // end namespace avro
140 
141 namespace gpudb
142 {
149  {
154  procedureNames(std::vector<std::string>()),
155  procedureDefinitions(std::vector<std::string>()),
156  additionalInfo(std::vector<std::map<std::string, std::string> >()),
157  info(std::map<std::string, std::string>())
158  {
159  }
160 
164  std::vector<std::string> procedureNames;
165 
169  std::vector<std::string> procedureDefinitions;
170 
189  std::vector<std::map<std::string, std::string> > additionalInfo;
190 
194  std::map<std::string, std::string> info;
195  };
196 } // end namespace gpudb
197 
198 namespace avro
199 {
200  template<> struct codec_traits<gpudb::ShowSqlProcResponse>
201  {
202  static void encode(Encoder& e, const gpudb::ShowSqlProcResponse& v)
203  {
204  ::avro::encode(e, v.procedureNames);
205  ::avro::encode(e, v.procedureDefinitions);
206  ::avro::encode(e, v.additionalInfo);
207  ::avro::encode(e, v.info);
208  }
209 
210  static void decode(Decoder& d, gpudb::ShowSqlProcResponse& v)
211  {
212  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
213  {
214  const std::vector<size_t> fo = rd->fieldOrder();
215 
216  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
217  {
218  switch (*it)
219  {
220  case 0:
221  ::avro::decode(d, v.procedureNames);
222  break;
223 
224  case 1:
225  ::avro::decode(d, v.procedureDefinitions);
226  break;
227 
228  case 2:
229  ::avro::decode(d, v.additionalInfo);
230  break;
231 
232  case 3:
233  ::avro::decode(d, v.info);
234  break;
235 
236  default:
237  break;
238  }
239  }
240  }
241  else
242  {
243  ::avro::decode(d, v.procedureNames);
244  ::avro::decode(d, v.procedureDefinitions);
245  ::avro::decode(d, v.additionalInfo);
246  ::avro::decode(d, v.info);
247  }
248  }
249  };
250 } // end namespace avro
251 
252 #endif // __SHOW_SQL_PROC_H__
std::map< std::string, std::string > info
Additional information.
ShowSqlProcRequest()
Constructs a ShowSqlProcRequest object with default parameters.
Definition: show_sql_proc.h:24
A set of results returned by GPUdb::showSqlProc.
std::string procedureName
Name of the procedure for which to retrieve the information.
Definition: show_sql_proc.h:73
std::vector< std::string > procedureDefinitions
A list of the definitions for the requested procedures.
A set of parameters for GPUdb::showSqlProc.
Definition: show_sql_proc.h:19
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective tables in the requested procedures.
ShowSqlProcResponse()
Constructs a ShowSqlProcResponse object with default parameters.
std::vector< std::string > procedureNames
A list of the names of the requested procedures.
ShowSqlProcRequest(const std::string &procedureName_, const std::map< std::string, std::string > &options_)
Constructs a ShowSqlProcRequest object with the specified parameters.
Definition: show_sql_proc.h:62
std::map< std::string, std::string > options
Optional parameters.
Definition: show_sql_proc.h:95