Skip to main content

◆ downloadFiles() [1/4]

DownloadFilesResponse gpudb::GPUdb::downloadFiles (const DownloadFilesRequest &request_) const

Downloads one or more files from KiFS.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ downloadFiles() [2/4]

DownloadFilesResponse & gpudb::GPUdb::downloadFiles (const DownloadFilesRequest &request_,
DownloadFilesResponse &response_ ) const

Downloads one or more files from KiFS.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ downloadFiles() [3/4]

DownloadFilesResponse gpudb::GPUdb::downloadFiles (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 ) const

Downloads one or more files from KiFS.

Parameters
[in]fileNamesAn array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter. Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
[in]readOffsetsAn array of starting byte offsets from which to read each respective file in fileNames. Must either be empty or the same length as fileNames. If empty, files are downloaded in their entirety. If not empty, readLengths must also not be empty.
[in]readLengthsArray of number of bytes to read from each respective file in fileNames. Must either be empty or the same length as fileNames. If empty, files are downloaded in their entirety. If not empty, readOffsets must also not be empty.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ downloadFiles() [4/4]

DownloadFilesResponse & gpudb::GPUdb::downloadFiles (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,
DownloadFilesResponse &response_ ) const

Downloads one or more files from KiFS.

Parameters
[in]fileNamesAn array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter. Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
[in]readOffsetsAn array of starting byte offsets from which to read each respective file in fileNames. Must either be empty or the same length as fileNames. If empty, files are downloaded in their entirety. If not empty, readLengths must also not be empty.
[in]readLengthsArray of number of bytes to read from each respective file in fileNames. Must either be empty or the same length as fileNames. If empty, files are downloaded in their entirety. If not empty, readOffsets must also not be empty.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).