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

Method MakeObject

cpp/src/arrow/filesystem/s3fs_benchmark.cc:139–145  ·  view source on GitHub ↗

Make an object with dummy data.

Source from the content-addressed store, hash-verified

137
138 /// Make an object with dummy data.
139 Status MakeObject(const std::string& name, int size) {
140 Aws::S3::Model::PutObjectRequest req;
141 req.SetBucket(ToAwsString(bucket_));
142 req.SetKey(ToAwsString(name));
143 req.SetBody(std::make_shared<std::stringstream>(std::string(size, 'a')));
144 return OutcomeToStatus("PutObject", client_->PutObject(req));
145 }
146
147 /// Make an object with Parquet data.
148 /// Appends integer columns to the beginning (to act as indices).

Callers

nothing calls this directly

Calls 2

ToAwsStringFunction · 0.85
OutcomeToStatusFunction · 0.85

Tested by

no test coverage detected