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

Method CreateKmsClient

python/pyarrow/src/arrow/python/parquet_encryption.cc:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64PyKmsClientFactory::~PyKmsClientFactory() {}
65
66std::shared_ptr<::parquet::encryption::KmsClient> PyKmsClientFactory::CreateKmsClient(
67 const ::parquet::encryption::KmsConnectionConfig& kms_connection_config) {
68 std::shared_ptr<::parquet::encryption::KmsClient> kms_client;
69 auto st = SafeCallIntoPython([&]() -> Status {
70 vtable_.create_kms_client(handler_.obj(), kms_connection_config, &kms_client);
71 return CheckPyError();
72 });
73 if (!st.ok()) {
74 throw ::parquet::ParquetStatusException(st);
75 }
76 return kms_client;
77}
78
79arrow::Result<std::shared_ptr<::parquet::FileEncryptionProperties>>
80PyCryptoFactory::SafeGetFileEncryptionProperties(

Callers

nothing calls this directly

Calls 4

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected