| 64 | PyKmsClientFactory::~PyKmsClientFactory() {} |
| 65 | |
| 66 | std::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 | |
| 79 | arrow::Result<std::shared_ptr<::parquet::FileEncryptionProperties>> |
| 80 | PyCryptoFactory::SafeGetFileEncryptionProperties( |
nothing calls this directly
no test coverage detected