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

Function GetObjectRange

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

Source from the content-addressed store, hash-verified

1271}
1272
1273Result<S3Model::GetObjectResult> GetObjectRange(Aws::S3::S3Client* client,
1274 const S3Path& path,
1275 const std::string& sse_customer_key,
1276 int64_t start, int64_t length,
1277 void* out) {
1278 S3Model::GetObjectRequest req;
1279 req.SetBucket(ToAwsString(path.bucket));
1280 req.SetKey(ToAwsString(path.key));
1281 RETURN_NOT_OK(SetSSECustomerKey(&req, sse_customer_key));
1282 req.SetRange(ToAwsString(FormatRange(start, length)));
1283 req.SetResponseStreamFactory(AwsWriteableStreamFactory(out, length));
1284 return OutcomeToResult("GetObject", client->GetObject(req));
1285}
1286
1287template <typename ObjectResult>
1288std::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