6 #ifndef __DOWNLOAD_FILES_H__
7 #define __DOWNLOAD_FILES_H__
30 options(std::map<std::string, std::string>())
80 DownloadFilesRequest(
const std::vector<std::string>& fileNames_,
const std::vector<int64_t>& readOffsets_,
const std::vector<int64_t>& readLengths_,
const std::map<std::string, std::string>& options_):
91 std::map<std::string, std::string>
options;
97 template<>
struct codec_traits<gpudb::DownloadFilesRequest>
109 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
111 const std::vector<size_t> fo = rd->fieldOrder();
113 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
168 fileData(std::vector<std::vector<uint8_t> >()),
169 info(std::map<std::string, std::string>())
175 std::map<std::string, std::string>
info;
181 template<>
struct codec_traits<gpudb::DownloadFilesResponse>
187 ::avro::encode(e, v.
info);
192 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
194 const std::vector<size_t> fo = rd->fieldOrder();
196 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
209 ::avro::decode(d, v.
info);
221 ::avro::decode(d, v.
info);
DownloadFilesResponse()
Constructs a DownloadFilesResponse object with default parameter values.
std::map< std::string, std::string > options
DownloadFilesRequest()
Constructs a DownloadFilesRequest object with default parameter values.
std::vector< std::string > fileNames
DownloadFilesRequest(const std::vector< std::string > &fileNames_, const std::vector< int64_t > &readOffsets_, const std::vector< int64_t > &readLengths_, const std::map< std::string, std::string > &options_)
Constructs a DownloadFilesRequest object with the specified parameters.
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > info
std::vector< std::vector< uint8_t > > fileData
std::vector< int64_t > readOffsets
std::vector< std::string > fileNames
std::vector< int64_t > readLengths