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

Function ToPredefinedAcl

cpp/src/arrow/filesystem/gcsfs_internal.cc:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147Result<gcs::PredefinedAcl> ToPredefinedAcl(
148 const std::shared_ptr<const KeyValueMetadata>& metadata) {
149 if (!metadata) {
150 return gcs::PredefinedAcl{};
151 }
152
153 const auto& keys = metadata->keys();
154 const auto& values = metadata->values();
155
156 for (std::size_t i = 0; i < keys.size(); ++i) {
157 if (keys[i] == "predefinedAcl") {
158 return gcs::PredefinedAcl(values[i]);
159 }
160 }
161 return gcs::PredefinedAcl{};
162}
163
164Result<gcs::WithObjectMetadata> ToObjectMetadata(
165 const std::shared_ptr<const KeyValueMetadata>& metadata) {

Callers 2

TESTFunction · 0.85
OpenOutputStreamMethod · 0.85

Calls 3

keysMethod · 0.45
valuesMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68