GPUdb C++ API  Version 7.2.2.4
delete_directory.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 __DELETE_DIRECTORY_H__
7 #define __DELETE_DIRECTORY_H__
8 
9 namespace gpudb
10 {
20  {
25  directoryName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
81  DeleteDirectoryRequest(const std::string& directoryName_, const std::map<std::string, std::string>& options_):
82  directoryName( directoryName_ ),
83  options( options_ )
84  {
85  }
86 
92  std::string directoryName;
93 
127  std::map<std::string, std::string> options;
128  };
129 } // end namespace gpudb
130 
131 namespace avro
132 {
133  template<> struct codec_traits<gpudb::DeleteDirectoryRequest>
134  {
135  static void encode(Encoder& e, const gpudb::DeleteDirectoryRequest& v)
136  {
137  ::avro::encode(e, v.directoryName);
138  ::avro::encode(e, v.options);
139  }
140 
141  static void decode(Decoder& d, gpudb::DeleteDirectoryRequest& v)
142  {
143  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
144  {
145  const std::vector<size_t> fo = rd->fieldOrder();
146 
147  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
148  {
149  switch (*it)
150  {
151  case 0:
152  ::avro::decode(d, v.directoryName);
153  break;
154 
155  case 1:
156  ::avro::decode(d, v.options);
157  break;
158 
159  default:
160  break;
161  }
162  }
163  }
164  else
165  {
166  ::avro::decode(d, v.directoryName);
167  ::avro::decode(d, v.options);
168  }
169  }
170  };
171 } // end namespace avro
172 
173 namespace gpudb
174 {
181  {
186  directoryName(std::string()),
187  info(std::map<std::string, std::string>())
188  {
189  }
190 
195  std::string directoryName;
196 
200  std::map<std::string, std::string> info;
201  };
202 } // end namespace gpudb
203 
204 namespace avro
205 {
206  template<> struct codec_traits<gpudb::DeleteDirectoryResponse>
207  {
208  static void encode(Encoder& e, const gpudb::DeleteDirectoryResponse& v)
209  {
210  ::avro::encode(e, v.directoryName);
211  ::avro::encode(e, v.info);
212  }
213 
214  static void decode(Decoder& d, gpudb::DeleteDirectoryResponse& v)
215  {
216  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
217  {
218  const std::vector<size_t> fo = rd->fieldOrder();
219 
220  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
221  {
222  switch (*it)
223  {
224  case 0:
225  ::avro::decode(d, v.directoryName);
226  break;
227 
228  case 1:
229  ::avro::decode(d, v.info);
230  break;
231 
232  default:
233  break;
234  }
235  }
236  }
237  else
238  {
239  ::avro::decode(d, v.directoryName);
240  ::avro::decode(d, v.info);
241  }
242  }
243  };
244 } // end namespace avro
245 
246 #endif // __DELETE_DIRECTORY_H__
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::deleteDirectory.
DeleteDirectoryRequest()
Constructs a DeleteDirectoryRequest object with default parameters.
std::string directoryName
Name of the directory in KiFS to be deleted.
std::string directoryName
Value of directoryName.
A set of results returned by GPUdb::deleteDirectory.
DeleteDirectoryResponse()
Constructs a DeleteDirectoryResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
DeleteDirectoryRequest(const std::string &directoryName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteDirectoryRequest object with the specified parameters.