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

Method ParseUnencryptedFileMetadata

cpp/src/parquet/file_reader.cc:641–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639};
640
641int64_t SerializedFile::ParseUnencryptedFileMetadata(
642 const std::shared_ptr<Buffer>& metadata_buffer, int64_t metadata_len,
643 std::shared_ptr<InternalFileDecryptor> file_decryptor) {
644 if (metadata_buffer->size() != metadata_len) {
645 throw ParquetException("Failed reading metadata buffer (requested " +
646 std::to_string(metadata_len) + " bytes but got " +
647 std::to_string(metadata_buffer->size()) + " bytes)");
648 }
649 int64_t read_metadata_len = metadata_len;
650 // The encrypted read path falls through to here, so pass in the decryptor
651 file_metadata_ = FileMetaData::Make(metadata_buffer->data(), read_metadata_len,
652 properties_, std::move(file_decryptor));
653 return file_metadata_->size();
654}
655
656std::pair<int64_t, int64_t>
657SerializedFile::ParseMetaDataOfEncryptedFileWithEncryptedFooter(

Callers

nothing calls this directly

Calls 5

ParquetExceptionFunction · 0.85
to_stringFunction · 0.85
MakeFunction · 0.70
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected