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

Method InitEncryption

cpp/src/parquet/column_writer.cc:553–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551 friend class BufferedPageWriter;
552
553 void InitEncryption() {
554 // Prepare the AAD for quick update later.
555 if (data_encryptor_ != nullptr) {
556 data_page_aad_ = encryption::CreateModuleAad(
557 data_encryptor_->file_aad(), encryption::kDataPage, row_group_ordinal_,
558 column_ordinal_, kNonPageOrdinal);
559 }
560 if (meta_encryptor_ != nullptr) {
561 data_page_header_aad_ = encryption::CreateModuleAad(
562 meta_encryptor_->file_aad(), encryption::kDataPageHeader, row_group_ordinal_,
563 column_ordinal_, kNonPageOrdinal);
564 }
565 }
566
567 void UpdateEncryption(int8_t module_type) {
568 switch (module_type) {

Callers

nothing calls this directly

Calls 1

CreateModuleAadFunction · 0.50

Tested by

no test coverage detected