GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
grant_permission_table.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 __GRANT_PERMISSION_TABLE_H__
7 #define __GRANT_PERMISSION_TABLE_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  name(std::string()),
27  permission(std::string()),
28  tableName(std::string()),
29  filterExpression(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
79  GrantPermissionTableRequest(const std::string& name_, const std::string& permission_, const std::string& tableName_, const std::string& filterExpression_, const std::map<std::string, std::string>& options_):
80  name( name_ ),
81  permission( permission_ ),
82  tableName( tableName_ ),
83  filterExpression( filterExpression_ ),
84  options( options_ )
85  {
86  }
87 
88  std::string name;
89  std::string permission;
90  std::string tableName;
91  std::string filterExpression;
92  std::map<std::string, std::string> options;
93  };
94 }
95 
96 namespace avro
97 {
98  template<> struct codec_traits<gpudb::GrantPermissionTableRequest>
99  {
100  static void encode(Encoder& e, const gpudb::GrantPermissionTableRequest& v)
101  {
102  ::avro::encode(e, v.name);
103  ::avro::encode(e, v.permission);
104  ::avro::encode(e, v.tableName);
105  ::avro::encode(e, v.filterExpression);
106  ::avro::encode(e, v.options);
107  }
108 
109  static void decode(Decoder& d, gpudb::GrantPermissionTableRequest& 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.name);
121  break;
122 
123  case 1:
124  ::avro::decode(d, v.permission);
125  break;
126 
127  case 2:
128  ::avro::decode(d, v.tableName);
129  break;
130 
131  case 3:
132  ::avro::decode(d, v.filterExpression);
133  break;
134 
135  case 4:
136  ::avro::decode(d, v.options);
137  break;
138 
139  default:
140  break;
141  }
142  }
143  }
144  else
145  {
146  ::avro::decode(d, v.name);
147  ::avro::decode(d, v.permission);
148  ::avro::decode(d, v.tableName);
149  ::avro::decode(d, v.filterExpression);
150  ::avro::decode(d, v.options);
151  }
152  }
153  };
154 }
155 
156 namespace gpudb
157 {
158 
166  {
167 
173  name(std::string()),
174  permission(std::string()),
175  tableName(std::string()),
176  filterExpression(std::string()),
177  info(std::map<std::string, std::string>())
178  {
179  }
180 
181  std::string name;
182  std::string permission;
183  std::string tableName;
184  std::string filterExpression;
185  std::map<std::string, std::string> info;
186  };
187 }
188 
189 namespace avro
190 {
191  template<> struct codec_traits<gpudb::GrantPermissionTableResponse>
192  {
193  static void encode(Encoder& e, const gpudb::GrantPermissionTableResponse& v)
194  {
195  ::avro::encode(e, v.name);
196  ::avro::encode(e, v.permission);
197  ::avro::encode(e, v.tableName);
198  ::avro::encode(e, v.filterExpression);
199  ::avro::encode(e, v.info);
200  }
201 
202  static void decode(Decoder& d, gpudb::GrantPermissionTableResponse& v)
203  {
204  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
205  {
206  const std::vector<size_t> fo = rd->fieldOrder();
207 
208  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
209  {
210  switch (*it)
211  {
212  case 0:
213  ::avro::decode(d, v.name);
214  break;
215 
216  case 1:
217  ::avro::decode(d, v.permission);
218  break;
219 
220  case 2:
221  ::avro::decode(d, v.tableName);
222  break;
223 
224  case 3:
225  ::avro::decode(d, v.filterExpression);
226  break;
227 
228  case 4:
229  ::avro::decode(d, v.info);
230  break;
231 
232  default:
233  break;
234  }
235  }
236  }
237  else
238  {
239  ::avro::decode(d, v.name);
240  ::avro::decode(d, v.permission);
241  ::avro::decode(d, v.tableName);
242  ::avro::decode(d, v.filterExpression);
243  ::avro::decode(d, v.info);
244  }
245  }
246  };
247 }
248 
249 #endif
GrantPermissionTableRequest()
Constructs a GrantPermissionTableRequest object with default parameter values.
std::map< std::string, std::string > info
A set of output parameters for const.
GrantPermissionTableRequest(const std::string &name_, const std::string &permission_, const std::string &tableName_, const std::string &filterExpression_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionTableRequest object with the specified parameters.
std::map< std::string, std::string > options
GrantPermissionTableResponse()
Constructs a GrantPermissionTableResponse object with default parameter values.
A set of input parameters for const.