MCPcopy Create free account
hub / github.com/apache/cloudberry / constructReaderParams

Method constructReaderParams

gpcontrib/gpcloud/src/s3bucket_reader.cpp:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38S3Params S3BucketReader::constructReaderParams(BucketContent& key) {
39 // encode the key name but leave the "/"
40 // "/encoded_path/encoded_name"
41 string keyEncoded = UriEncode(key.getName());
42 FindAndReplace(keyEncoded, "%2F", "/");
43
44 S3Params readerParams = this->params.setPrefix(keyEncoded);
45
46 readerParams.setKeySize(key.getSize());
47
48 S3DEBUG("key: %s, size: %" PRIu64, readerParams.getS3Url().getFullUrlForCurl().c_str(),
49 readerParams.getKeySize());
50 return readerParams;
51}
52
53uint64_t S3BucketReader::readWithoutHeaderLine(char* buf, uint64_t count) {
54 char* current = NULL;

Callers

nothing calls this directly

Calls 8

UriEncodeFunction · 0.85
FindAndReplaceFunction · 0.85
getSizeMethod · 0.80
getFullUrlForCurlMethod · 0.80
getNameMethod · 0.45
setPrefixMethod · 0.45
setKeySizeMethod · 0.45
getKeySizeMethod · 0.45

Tested by

no test coverage detected