MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / NewRandomAccessFile

Method NewRandomAccessFile

tensorflow/core/platform/s3/s3_file_system.cc:327–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327Status 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
335Status S3FileSystem::NewWritableFile(const string& fname,
336 std::unique_ptr<WritableFile>* result) {

Callers 2

ReadAllMethod · 0.45
TEST_FFunction · 0.45

Calls 3

GetS3ClientMethod · 0.95
ParseS3PathFunction · 0.85
resetMethod · 0.45

Tested by 2

ReadAllMethod · 0.36
TEST_FFunction · 0.36