MCPcopy Create free account
hub / github.com/apache/arrow / OpenOutputStream

Method OpenOutputStream

cpp/src/arrow/filesystem/s3fs.cc:3450–3462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3448}
3449
3450Result<std::shared_ptr<io::OutputStream>> S3FileSystem::OpenOutputStream(
3451 const std::string& s, const std::shared_ptr<const KeyValueMetadata>& metadata) {
3452 ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(s));
3453 ARROW_ASSIGN_OR_RAISE(auto path, S3Path::FromString(s));
3454 RETURN_NOT_OK(ValidateFilePath(path));
3455
3456 RETURN_NOT_OK(CheckS3Initialized());
3457
3458 auto ptr = std::make_shared<ObjectOutputStream>(impl_->holder_, io_context(), path,
3459 impl_->options(), metadata);
3460 RETURN_NOT_OK(ptr->Init());
3461 return ptr;
3462}
3463
3464Result<std::shared_ptr<io::OutputStream>> S3FileSystem::OpenAppendStream(
3465 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {

Callers 15

TEST_FFunction · 0.45
OpenWriterFunction · 0.45
TestOpenOutputStreamFunction · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 6

AssertNoTrailingSlashFunction · 0.85
ValidateFilePathFunction · 0.85
CheckS3InitializedFunction · 0.85
io_contextFunction · 0.85
optionsMethod · 0.45
InitMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TestOpenOutputStreamFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36