| 325 | } |
| 326 | |
| 327 | Status S3FileSystem::NewRandomAccessFile( |
| 328 | const string& fname, std::unique_ptr<RandomAccessFile>* result) { |
| 329 | string bucket, object; |
| 330 | TF_RETURN_IF_ERROR(ParseS3Path(fname, false, &bucket, &object)); |
| 331 | result->reset(new S3RandomAccessFile(bucket, object, this->GetS3Client())); |
| 332 | return Status::OK(); |
| 333 | } |
| 334 | |
| 335 | Status S3FileSystem::NewWritableFile(const string& fname, |
| 336 | std::unique_ptr<WritableFile>* result) { |