GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
upload_files_fromurl.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 __UPLOAD_FILES_FROMURL_H__
7 #define __UPLOAD_FILES_FROMURL_H__
8 
9 namespace gpudb
10 {
11 
37  {
38 
44  fileNames(std::vector<std::string>()),
45  urls(std::vector<std::string>()),
46  options(std::map<std::string, std::string>())
47  {
48  }
49 
68  UploadFilesFromurlRequest(const std::vector<std::string>& fileNames_, const std::vector<std::string>& urls_, const std::map<std::string, std::string>& options_):
69  fileNames( fileNames_ ),
70  urls( urls_ ),
71  options( options_ )
72  {
73  }
74 
75  std::vector<std::string> fileNames;
76  std::vector<std::string> urls;
77  std::map<std::string, std::string> options;
78  };
79 }
80 
81 namespace avro
82 {
83  template<> struct codec_traits<gpudb::UploadFilesFromurlRequest>
84  {
85  static void encode(Encoder& e, const gpudb::UploadFilesFromurlRequest& v)
86  {
87  ::avro::encode(e, v.fileNames);
88  ::avro::encode(e, v.urls);
89  ::avro::encode(e, v.options);
90  }
91 
92  static void decode(Decoder& d, gpudb::UploadFilesFromurlRequest& v)
93  {
94  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
95  {
96  const std::vector<size_t> fo = rd->fieldOrder();
97 
98  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
99  {
100  switch (*it)
101  {
102  case 0:
103  ::avro::decode(d, v.fileNames);
104  break;
105 
106  case 1:
107  ::avro::decode(d, v.urls);
108  break;
109 
110  case 2:
111  ::avro::decode(d, v.options);
112  break;
113 
114  default:
115  break;
116  }
117  }
118  }
119  else
120  {
121  ::avro::decode(d, v.fileNames);
122  ::avro::decode(d, v.urls);
123  ::avro::decode(d, v.options);
124  }
125  }
126  };
127 }
128 
129 namespace gpudb
130 {
131 
157  {
158 
164  successfulFileNames(std::vector<std::string>()),
165  successfulUrls(std::vector<std::string>()),
166  info(std::map<std::string, std::string>())
167  {
168  }
169 
170  std::vector<std::string> successfulFileNames;
171  std::vector<std::string> successfulUrls;
172  std::map<std::string, std::string> info;
173  };
174 }
175 
176 namespace avro
177 {
178  template<> struct codec_traits<gpudb::UploadFilesFromurlResponse>
179  {
180  static void encode(Encoder& e, const gpudb::UploadFilesFromurlResponse& v)
181  {
182  ::avro::encode(e, v.successfulFileNames);
183  ::avro::encode(e, v.successfulUrls);
184  ::avro::encode(e, v.info);
185  }
186 
187  static void decode(Decoder& d, gpudb::UploadFilesFromurlResponse& v)
188  {
189  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
190  {
191  const std::vector<size_t> fo = rd->fieldOrder();
192 
193  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
194  {
195  switch (*it)
196  {
197  case 0:
198  ::avro::decode(d, v.successfulFileNames);
199  break;
200 
201  case 1:
202  ::avro::decode(d, v.successfulUrls);
203  break;
204 
205  case 2:
206  ::avro::decode(d, v.info);
207  break;
208 
209  default:
210  break;
211  }
212  }
213  }
214  else
215  {
216  ::avro::decode(d, v.successfulFileNames);
217  ::avro::decode(d, v.successfulUrls);
218  ::avro::decode(d, v.info);
219  }
220  }
221  };
222 }
223 
224 #endif
std::vector< std::string > fileNames
UploadFilesFromurlRequest(const std::vector< std::string > &fileNames_, const std::vector< std::string > &urls_, const std::map< std::string, std::string > &options_)
Constructs an UploadFilesFromurlRequest object with the specified parameters.
std::vector< std::string > successfulUrls
std::map< std::string, std::string > info
UploadFilesFromurlResponse()
Constructs an UploadFilesFromurlResponse object with default parameter values.
UploadFilesFromurlRequest()
Constructs an UploadFilesFromurlRequest object with default parameter values.
std::vector< std::string > urls
A set of output parameters for const.
std::vector< std::string > successfulFileNames
A set of input parameters for const.
std::map< std::string, std::string > options