SEAM data file
A SEAM data file (extension .stc) is an immutable, sorted run of entries. A writer builds it once, installs it, and never changes it. Every section is encrypted and authenticated, see Seal trailer. Which files are live is recorded in the MANIFEST.
Overall layout
Section titled “Overall layout”offset 0 [zero padding]? data block frame 0 [zero padding]? data block frame 1 ... bloom frame (always) block-stats frame (iff footer flag STATS) index frame (always) zero padding so that file size = 0 (mod 4096) footer (96 B) last 96 bytes of the fileEvery section except the footer is a frame: a 5-byte header, a body and a 32-byte seal trailer. The footer is the last 96 bytes and says where the bloom and index frames are.
Sections
Section titled “Sections”| Section | Page | Notes |
|---|---|---|
| Data blocks | Row block, Columnar block | located only through the index |
| Bloom frame | Bloom filter | always present, always raw |
| Block-stats frame | Stats | present iff footer flag STATS |
| Index frame | Block index | always present |
| Footer | Footer | last 96 bytes |
Padding and alignment rules
Section titled “Padding and alignment rules”- The file size of a local file must be a multiple of 4096 and at least 96. Zero padding before the footer enforces this.
- Data frames are located only through the index. Padding bytes belong to no frame. Readers must not assume frames are contiguous.
- With
storage.block_align_kb(default 16 KiB), a frame is preceded by zero bytes when starting it at the next 16 KiB boundary makes it touch fewer 16 KiB records (SPEC V45). - The block-stats frame has no explicit offset. It occupies
[bloom_off + bloom_len, index_off).
Remote files
Section titled “Remote files”A cold file can live in object storage with only its tail kept locally, see Remote files and sidecar.
Format stamps
Section titled “Format stamps”Each file has a per-file stamp in the MANIFEST. Newer structure revisions (footer revision 5, columnar revision 5, stats revision 2) appear only in files written by current builds; footer revision 4 is read-only.