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

Function GetKeyMaterial

cpp/src/parquet/encryption/file_system_key_material_store.h:58–67  ·  view source on GitHub ↗

Get key material

Source from the content-addressed store, hash-verified

56
57 /// Get key material
58 std::string GetKeyMaterial(std::string key_id_in_file) {
59 if (key_material_map_.empty()) {
60 LoadKeyMaterialMap();
61 }
62 auto found = key_material_map_.find(key_id_in_file);
63 if (found == key_material_map_.end()) {
64 throw ParquetException("Invalid key id");
65 }
66 return found->second;
67 }
68
69 /// After key material was added for all keys in the given Parquet file,
70 /// save material in persistent store.

Callers

nothing calls this directly

Calls 4

ParquetExceptionFunction · 0.85
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected