GPUdb C++ API  Version 7.2.2.4
create_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 __CREATE_DIRECTORY_H__
7 #define __CREATE_DIRECTORY_H__
8 
9 namespace gpudb
10 {
23  {
28  directoryName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
76  CreateDirectoryRequest(const std::string& directoryName_, const std::map<std::string, std::string>& options_):
77  directoryName( directoryName_ ),
78  options( options_ )
79  {
80  }
81 
85  std::string directoryName;
86 
116  std::map<std::string, std::string> options;
117  };
118 } // end namespace gpudb
119 
120 namespace avro
121 {
122  template<> struct codec_traits<gpudb::CreateDirectoryRequest>
123  {
124  static void encode(Encoder& e, const gpudb::CreateDirectoryRequest& v)
125  {
126  ::avro::encode(e, v.directoryName);
127  ::avro::encode(e, v.options);
128  }
129 
130  static void decode(Decoder& d, gpudb::CreateDirectoryRequest& v)
131  {
132  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
133  {
134  const std::vector<size_t> fo = rd->fieldOrder();
135 
136  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
137  {
138  switch (*it)
139  {
140  case 0:
141  ::avro::decode(d, v.directoryName);
142  break;
143 
144  case 1:
145  ::avro::decode(d, v.options);
146  break;
147 
148  default:
149  break;
150  }
151  }
152  }
153  else
154  {
155  ::avro::decode(d, v.directoryName);
156  ::avro::decode(d, v.options);
157  }
158  }
159  };
160 } // end namespace avro
161 
162 namespace gpudb
163 {
170  {
175  directoryName(std::string()),
176  info(std::map<std::string, std::string>())
177  {
178  }
179 
184  std::string directoryName;
185 
189  std::map<std::string, std::string> info;
190  };
191 } // end namespace gpudb
192 
193 namespace avro
194 {
195  template<> struct codec_traits<gpudb::CreateDirectoryResponse>
196  {
197  static void encode(Encoder& e, const gpudb::CreateDirectoryResponse& v)
198  {
199  ::avro::encode(e, v.directoryName);
200  ::avro::encode(e, v.info);
201  }
202 
203  static void decode(Decoder& d, gpudb::CreateDirectoryResponse& v)
204  {
205  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
206  {
207  const std::vector<size_t> fo = rd->fieldOrder();
208 
209  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
210  {
211  switch (*it)
212  {
213  case 0:
214  ::avro::decode(d, v.directoryName);
215  break;
216 
217  case 1:
218  ::avro::decode(d, v.info);
219  break;
220 
221  default:
222  break;
223  }
224  }
225  }
226  else
227  {
228  ::avro::decode(d, v.directoryName);
229  ::avro::decode(d, v.info);
230  }
231  }
232  };
233 } // end namespace avro
234 
235 #endif // __CREATE_DIRECTORY_H__
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::createDirectory.
CreateDirectoryRequest()
Constructs a CreateDirectoryRequest object with default parameters.
CreateDirectoryRequest(const std::string &directoryName_, const std::map< std::string, std::string > &options_)
Constructs a CreateDirectoryRequest object with the specified parameters.
std::string directoryName
Value of directoryName.
std::map< std::string, std::string > info
Additional information.
CreateDirectoryResponse()
Constructs a CreateDirectoryResponse object with default parameters.
std::string directoryName
Name of the directory in KiFS to be created.
A set of parameters for GPUdb::createDirectory.