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

Method column_encryption_properties

cpp/src/parquet/encryption/encryption.cc:276–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276std::shared_ptr<ColumnEncryptionProperties>
277FileEncryptionProperties::column_encryption_properties(const std::string& column_path) {
278 if (encrypted_columns_.size() == 0) {
279 return ColumnEncryptionProperties::WithFooterKey();
280 }
281 auto it = encrypted_columns_.find(column_path);
282 if (it != encrypted_columns_.end()) {
283 return it->second;
284 }
285
286 // We do not have an exact match of column_path in encrypted_columns_
287 // there might be the root parent field in encrypted_columns_.
288 auto pos = column_path.find('.');
289 if (pos != std::string::npos) {
290 std::string root = column_path.substr(0, pos);
291 it = encrypted_columns_.find(root);
292 if (it != encrypted_columns_.end()) {
293 return it->second;
294 }
295 }
296
297 return nullptr;
298}
299
300FileEncryptionProperties::FileEncryptionProperties(
301 ParquetCipher::type cipher, SecureString footer_key, std::string footer_key_metadata,

Callers 4

FinishMethod · 0.80
TESTFunction · 0.80
GetColumnEncryptorMethod · 0.80

Calls 4

substrMethod · 0.80
sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64