6 #ifndef __UPLOAD_FILES_FROMURL_H__ 7 #define __UPLOAD_FILES_FROMURL_H__ 40 urls(std::vector<std::string>()),
41 options(std::map<std::string, std::string>())
62 UploadFilesFromurlRequest(
const std::vector<std::string>& fileNames_,
const std::vector<std::string>& urls_,
const std::map<std::string, std::string>& options_):
81 std::vector<std::string>
urls;
86 std::map<std::string, std::string>
options;
92 template<>
struct codec_traits<
gpudb::UploadFilesFromurlRequest>
97 ::avro::encode(e, v.
urls);
103 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
105 const std::vector<size_t> fo = rd->fieldOrder();
107 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
116 ::avro::decode(d, v.
urls);
131 ::avro::decode(d, v.
urls);
154 info(std::map<std::string, std::string>())
173 std::map<std::string, std::string>
info;
179 template<>
struct codec_traits<
gpudb::UploadFilesFromurlResponse>
185 ::avro::encode(e, v.
info);
190 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
192 const std::vector<size_t> fo = rd->fieldOrder();
194 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
207 ::avro::decode(d, v.
info);
219 ::avro::decode(d, v.
info);
225 #endif // __UPLOAD_FILES_FROMURL_H__ std::vector< std::string > fileNames
An array of full file name paths to be used for the files uploaded to KiFS.
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
List of urls that were successfully uploaded.
std::map< std::string, std::string > info
Additional information.
UploadFilesFromurlResponse()
Constructs an UploadFilesFromurlResponse object with default parameters.
UploadFilesFromurlRequest()
Constructs an UploadFilesFromurlRequest object with default parameters.
std::vector< std::string > urls
List of URLs to upload, for each respective file in fileNames.
A set of results returned by GPUdb::uploadFilesFromurl.
std::vector< std::string > successfulFileNames
List of fileNames that were successfully uploaded.
A set of parameters for GPUdb::uploadFilesFromurl.
std::map< std::string, std::string > options
Optional parameters.