Skip to content

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.

offset 0 data block frame 0 raw, zstd or LZ4 body, then 32 B seal trailer optional zero padding (block alignment) data block frame 1 located only through the index more frames ... bloom frame always present, always raw block-stats frame present iff footer flag STATS index frame always present zero padding to a multiple of 4096 footer, 96 B (last 96 bytes) the index lists every data frame: offset, len bloom_off, bloom_len come from the footer stats: bloom_off + bloom_len up to index_off index_off, index_len 64 B plaintext + 32 B seal trailer
Data block frames, then the bloom frame, optional stats frame and index frame, zero padding, and the 96-byte footer last.
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 file

Every 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.

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
  • 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).

A cold file can live in object storage with only its tail kept locally, see Remote files and sidecar.

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.