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

Function GetKey

cpp/src/parquet/encryption/encryption.h:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 void PutKey(uint32_t key_id, ::arrow::util::SecureString key);
62
63 ::arrow::util::SecureString GetKey(const std::string& key_id_string) override {
64 // key_id_string is string but for IntegerKeyIdRetriever it encodes
65 // a native-endian 32 bit unsigned integer key_id
66 uint32_t key_id;
67 assert(key_id_string.size() == sizeof(key_id));
68 memcpy(&key_id, key_id_string.data(), sizeof(key_id));
69
70 return key_map_.at(key_id);
71 }
72
73 private:
74 std::map<uint32_t, ::arrow::util::SecureString> key_map_;

Callers 2

GetLatestKeyMethod · 0.85
RehashMethod · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected