GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_sql_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 __SHOW_SQL_PROC_H__
7 #define __SHOW_SQL_PROC_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  procedureName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
57  ShowSqlProcRequest(const std::string& procedureName_, const std::map<std::string, std::string>& options_):
58  procedureName( procedureName_ ),
59  options( options_ )
60  {
61  }
62 
63  std::string procedureName;
64  std::map<std::string, std::string> options;
65  };
66 }
67 
68 namespace avro
69 {
70  template<> struct codec_traits<gpudb::ShowSqlProcRequest>
71  {
72  static void encode(Encoder& e, const gpudb::ShowSqlProcRequest& v)
73  {
74  ::avro::encode(e, v.procedureName);
75  ::avro::encode(e, v.options);
76  }
77 
78  static void decode(Decoder& d, gpudb::ShowSqlProcRequest& v)
79  {
80  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81  {
82  const std::vector<size_t> fo = rd->fieldOrder();
83 
84  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85  {
86  switch (*it)
87  {
88  case 0:
89  ::avro::decode(d, v.procedureName);
90  break;
91 
92  case 1:
93  ::avro::decode(d, v.options);
94  break;
95 
96  default:
97  break;
98  }
99  }
100  }
101  else
102  {
103  ::avro::decode(d, v.procedureName);
104  ::avro::decode(d, v.options);
105  }
106  }
107  };
108 }
109 
110 namespace gpudb
111 {
112 
121  {
122 
128  procedureNames(std::vector<std::string>()),
129  procedureDefinitions(std::vector<std::string>()),
130  additionalInfo(std::vector<std::map<std::string, std::string> >()),
131  info(std::map<std::string, std::string>())
132  {
133  }
134 
135  std::vector<std::string> procedureNames;
136  std::vector<std::string> procedureDefinitions;
137  std::vector<std::map<std::string, std::string> > additionalInfo;
138  std::map<std::string, std::string> info;
139  };
140 }
141 
142 namespace avro
143 {
144  template<> struct codec_traits<gpudb::ShowSqlProcResponse>
145  {
146  static void encode(Encoder& e, const gpudb::ShowSqlProcResponse& v)
147  {
148  ::avro::encode(e, v.procedureNames);
149  ::avro::encode(e, v.procedureDefinitions);
150  ::avro::encode(e, v.additionalInfo);
151  ::avro::encode(e, v.info);
152  }
153 
154  static void decode(Decoder& d, gpudb::ShowSqlProcResponse& v)
155  {
156  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
157  {
158  const std::vector<size_t> fo = rd->fieldOrder();
159 
160  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
161  {
162  switch (*it)
163  {
164  case 0:
165  ::avro::decode(d, v.procedureNames);
166  break;
167 
168  case 1:
169  ::avro::decode(d, v.procedureDefinitions);
170  break;
171 
172  case 2:
173  ::avro::decode(d, v.additionalInfo);
174  break;
175 
176  case 3:
177  ::avro::decode(d, v.info);
178  break;
179 
180  default:
181  break;
182  }
183  }
184  }
185  else
186  {
187  ::avro::decode(d, v.procedureNames);
188  ::avro::decode(d, v.procedureDefinitions);
189  ::avro::decode(d, v.additionalInfo);
190  ::avro::decode(d, v.info);
191  }
192  }
193  };
194 }
195 
196 #endif
std::map< std::string, std::string > info
ShowSqlProcRequest()
Constructs a ShowSqlProcRequest object with default parameter values.
Definition: show_sql_proc.h:26
A set of output parameters for const.
std::vector< std::string > procedureDefinitions
A set of input parameters for const.
Definition: show_sql_proc.h:19
std::vector< std::map< std::string, std::string > > additionalInfo
ShowSqlProcResponse()
Constructs a ShowSqlProcResponse object with default parameter values.
std::vector< std::string > procedureNames
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:57
std::map< std::string, std::string > options
Definition: show_sql_proc.h:64