6 #ifndef __DOWNLOAD_FILES_H__ 7 #define __DOWNLOAD_FILES_H__ 28 options(std::map<std::string, std::string>())
84 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_):
146 template<>
struct codec_traits<
gpudb::DownloadFilesRequest>
158 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
160 const std::vector<size_t> fo = rd->fieldOrder();
162 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
212 fileData(std::vector<std::vector<uint8_t> >()),
213 info(std::map<std::string, std::string>())
230 std::map<std::string, std::string>
info;
236 template<>
struct codec_traits<
gpudb::DownloadFilesResponse>
242 ::avro::encode(e, v.
info);
247 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
249 const std::vector<size_t> fo = rd->fieldOrder();
251 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
264 ::avro::decode(d, v.
info);
276 ::avro::decode(d, v.
info);
282 #endif // __DOWNLOAD_FILES_H__ DownloadFilesResponse()
Constructs a DownloadFilesResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
DownloadFilesRequest()
Constructs a DownloadFilesRequest object with default parameters.
std::vector< std::string > fileNames
An array of the file names to download from KiFS.
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 parameters for GPUdb::downloadFiles.
A set of results returned by GPUdb::downloadFiles.
std::map< std::string, std::string > info
Additional information.
std::vector< std::vector< uint8_t > > fileData
Data for the respective downloaded files listed in fileNames.
std::vector< int64_t > readOffsets
An array of starting byte offsets from which to read each respective file in fileNames.
std::vector< std::string > fileNames
Names of the files downloaded from KiFS.
std::vector< int64_t > readLengths
Array of number of bytes to read from each respective file in fileNames.