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

Method OpenInputStream

cpp/src/arrow/filesystem/gcsfs.cc:608–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606 }
607
608 Result<std::shared_ptr<GcsInputStream>> OpenInputStream(const GcsPath& path,
609 gcs::Generation generation,
610 gcs::ReadRange range,
611 gcs::ReadFromOffset offset) {
612 auto stream = client_.ReadObject(path.bucket, path.object, generation, range, offset);
613 ARROW_GCS_RETURN_NOT_OK(stream.status());
614 return std::make_shared<GcsInputStream>(std::move(stream), path, generation, client_);
615 }
616
617 Result<std::shared_ptr<GcsOutputStream>> OpenOutputStream(
618 const GcsPath& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {

Callers

nothing calls this directly

Calls 1

statusMethod · 0.45

Tested by

no test coverage detected