Skip to content

Commit

Permalink
Merge pull request apache#3 from anjakefala/dataset_encryption
Browse files Browse the repository at this point in the history
Move property strings above the struct variables
  • Loading branch information
tolleybot committed Oct 6, 2023
2 parents c3fe65a + fa9054a commit d2f1584
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions cpp/src/arrow/dataset/parquet_encryption_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,17 @@ namespace dataset {
/// parameters to appropriate components within the Parquet library. It holds references
/// to objects defining encryption strategy, Key Management Service (KMS) configuration,
/// and specific encryption configurations for Parquet data.
///
/// \property crypto_factory
/// Shared pointer to CryptoFactory object, responsible for reating cryptographic
/// components like encryptors and decryptors.
/// \property kms_connection_config
/// Shared pointer to KmsConnectionConfig object, holding configuration parameters for
/// connecting to a Key Management Service (KMS).
/// \property encryption_config
/// Shared pointer to EncryptionConfiguration object, defining specific encryption
/// settings for Parquet data, like keys for different columns.
struct ARROW_DS_EXPORT ParquetEncryptionConfig {
/// Shared pointer to CryptoFactory object, responsible for reating cryptographic
/// components like encryptors and decryptors.
std::shared_ptr<parquet::encryption::CryptoFactory> crypto_factory;

/// Shared pointer to KmsConnectionConfig object, holding configuration parameters for
/// connecting to a Key Management Service (KMS).
std::shared_ptr<parquet::encryption::KmsConnectionConfig> kms_connection_config;

/// Shared pointer to EncryptionConfiguration object, defining specific encryption
/// settings for Parquet data, like keys for different columns.
std::shared_ptr<parquet::encryption::EncryptionConfiguration> encryption_config;
};

Expand All @@ -59,19 +57,17 @@ struct ARROW_DS_EXPORT ParquetEncryptionConfig {
/// appropriate decryption components within Parquet library. It holds references to
/// objects defining decryption strategy, Key Management Service (KMS) configuration,
/// and specific decryption configurations for reading encrypted Parquet data.
///
/// \property crypto_factory
/// Shared pointer to CryptoFactory object, pivotal in creating cryptographic
/// components for decryption process.
/// \property kms_connection_config
/// Shared pointer to KmsConnectionConfig object, containing parameters for connecting
/// to a Key Management Service (KMS) during decryption.
/// \property decryption_config
/// Shared pointer to DecryptionConfiguration object, specifying decryption settings
/// for reading encrypted Parquet data.
struct ARROW_DS_EXPORT ParquetDecryptionConfig {
/// Shared pointer to CryptoFactory object, pivotal in creating cryptographic
/// components for decryption process.
std::shared_ptr<parquet::encryption::CryptoFactory> crypto_factory;

/// Shared pointer to KmsConnectionConfig object, containing parameters for connecting
/// to a Key Management Service (KMS) during decryption.
std::shared_ptr<parquet::encryption::KmsConnectionConfig> kms_connection_config;

/// Shared pointer to DecryptionConfiguration object, specifying decryption settings
/// for reading encrypted Parquet data.
std::shared_ptr<parquet::encryption::DecryptionConfiguration> decryption_config;
};

Expand Down

0 comments on commit d2f1584

Please sign in to comment.