| 826 | } |
| 827 | |
| 828 | std::shared_ptr<Encryptor> GetColumnMetaEncryptor(int row_group_ordinal, |
| 829 | int column_ordinal, |
| 830 | int8_t module_type) const { |
| 831 | std::shared_ptr<Encryptor> encryptor; |
| 832 | if (file_encryptor_ != nullptr) { |
| 833 | const auto column_path = schema_->Column(column_ordinal)->path()->ToDotString(); |
| 834 | encryptor = file_encryptor_->GetColumnMetaEncryptor(column_path); |
| 835 | if (encryptor != nullptr) { |
| 836 | encryptor->UpdateAad(encryption::CreateModuleAad( |
| 837 | encryptor->file_aad(), module_type, row_group_ordinal, column_ordinal, |
| 838 | kNonPageOrdinal)); |
| 839 | } |
| 840 | } |
| 841 | return encryptor; |
| 842 | } |
| 843 | |
| 844 | template <typename Builder> |
| 845 | IndexLocations SerializeIndex( |
no test coverage detected