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

Method InitEncryption

cpp/src/parquet/column_writer.cc:552–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

CreateModuleAadFunction · 0.50

Tested by

no test coverage detected