From b40082e535317cfe4b7ef73b2e97f107c9d2be9d Mon Sep 17 00:00:00 2001 From: ArrayRecord Team Date: Tue, 8 Oct 2024 01:25:02 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 683514384 --- cpp/layout.proto | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/layout.proto b/cpp/layout.proto index d90a9a5..d402ec6 100644 --- a/cpp/layout.proto +++ b/cpp/layout.proto @@ -35,7 +35,6 @@ package array_record; // chunk size 64KB and is 64KB aligned. Therefore we can locate it by // subtracting the file size by 64KB. See the illustrated file layout below. // -// // +-----------------+ // | User Data | // | Riegeli Chunk | @@ -56,7 +55,6 @@ package array_record; // |RiegeliPostscript| <--- Must Align 64KB and fit in 64KB. // +-----------------+ // -// // The footer is composed of a header (RiegeliFooterMetadata) and an array of // proto records. We choose an array of proto records instead of repeated fields // in a single proto to avoid the 2GB proto size limit. We can use proto `enum` @@ -82,6 +80,7 @@ message RiegeliFooterMetadata { optional uint32 version = 1; optional uint64 num_chunks = 2; optional uint64 num_records = 3; + // Writer options for debugging purposes. optional string writer_options = 4; } @@ -91,6 +90,7 @@ message RiegeliFooterMetadata { // protos are ArrayRecordFooter. ArrayRecordMetadata array_record_metadata = 1; } + // Useful field for us to support append in the future. reserved "previous_metadata"; } @@ -102,5 +102,6 @@ message RiegeliFooterMetadata { message RiegeliPostscript { optional uint64 footer_offset = 1; optional uint64 magic = 2; + reserved "footer_encoding"; }