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

Function GetObjectRange

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

Source from the content-addressed store, hash-verified

1331}
1332
1333Result<S3Model::GetObjectResult> GetObjectRange(Aws::S3::S3Client* client,
1334 const S3Path& path,
1335 const std::string& sse_customer_key,
1336 int64_t start, int64_t length,
1337 void* out) {
1338 S3Model::GetObjectRequest req;
1339 req.SetBucket(ToAwsString(path.bucket));
1340 req.SetKey(ToAwsString(path.key));
1341 RETURN_NOT_OK(SetSSECustomerKey(&req, sse_customer_key));
1342 req.SetRange(ToAwsString(FormatRange(start, length)));
1343 req.SetResponseStreamFactory(AwsWriteableStreamFactory(out, length));
1344 return OutcomeToResult("GetObject", client->GetObject(req));
1345}
1346
1347template <typename ObjectResult>
1348std::shared_ptr<const KeyValueMetadata> GetObjectMetadata(const ObjectResult& result) {

Callers

nothing calls this directly

Calls 5

ToAwsStringFunction · 0.85
SetSSECustomerKeyFunction · 0.85
FormatRangeFunction · 0.85
OutcomeToResultFunction · 0.85

Tested by

no test coverage detected