Skip to content

Index of structures

Applies to SEAM 1

One row per structure page. Introduced is the first public version whose writers produce it, or “Pre-release only” for layouts that SEAM 1 only reads. Pre-release is the range of pre-release stamps that already had it. For the same data by version, see the version matrix.

StructureIntroducedPre-releaseReadable byWhat it is
Conventions
ConventionsSEAM 11–4≥ SEAM 1Integer encodings, counts, error classes and notation used by every page.
varintSEAM 11–4≥ SEAM 1Unsigned LEB128, at most 10 bytes.
zvarintSEAM 11–4≥ SEAM 1Zig-zag signed varint.
count(limit)SEAM 11–4≥ SEAM 1A varint that must not exceed a stated limit.
Error classesSEAM 11–4≥ SEAM 1Corrupt and NewerFormat, and when each applies.
Store layout
Store layoutSEAM 11–4≥ SEAM 1The directory tree of a store and what lives where.
File kindsSEAM 11–4≥ SEAM 1Which files are mutable, how each is sealed, and which are authoritative.
Lifecycle and atomic installSEAM 11–4≥ SEAM 1How a data file becomes part of the store, and the startup sweep.
Open sequenceSEAM 11–4≥ SEAM 1The ordered steps a build performs when it opens a store.
Small filesSEAM 11–4≥ SEAM 1strata.lock, db.id, db.parent, archive.anchor and the keyring file.
Derived cachesSEAM 11–4≥ SEAM 1Rebuildable cache files that are never migrated.
ZONESSEAM 11–4≥ SEAM 1Zone-map seeds cache.
SPANSSEAM 11–4≥ SEAM 1Per-file value spans cache.
TIERHEATSEAM 11–4≥ SEAM 1Per-file read heat for the cold tier.
cache.hotSEAM 11–4≥ SEAM 1Hot block list used for warm restart.
rcache/SEAM 11–4≥ SEAM 1Cold-tier frame cache.
Spill runsSEAM 11–4≥ SEAM 1Temporary bulk-load and index-build sort runs.
Encryption
Encryption at restSEAM 11–4≥ SEAM 1Algorithms and what is sealed.
Key hierarchySEAM 11–4≥ SEAM 1Master key, data keys, cluster keys and the auth key.
Keyring fileSEAM 11–4≥ SEAM 1The sealed keys file: header, body and rewrite rules.
Seal trailerSEAM 11–4≥ SEAM 1The 32-byte trailer that ends every sealed region.
Nonces and epochsSEAM 11–4≥ SEAM 1How nonces are built and why they cannot repeat.
AAD per objectSEAM 11–4≥ SEAM 1The additional authenticated data bound to each sealed object.
Sealed caching_sha2 verifierSEAM 11–4≥ SEAM 1The 61-byte sealed catalog value for MySQL caching_sha2 passwords.
Write-ahead log
Write-ahead logSEAM 11–4≥ SEAM 1Segments, 4096-byte blocks and records.
SegmentsSEAM 11–4≥ SEAM 1File names, preallocation and WAL format numbers.
WAL blockSEAM 11–4≥ SEAM 1The sealed 4096-byte block and its validity rules.
Record framingSEAM 11–4≥ SEAM 1Length, CRC32C and the logical stream across blocks.
Commit recordSEAM 11–4≥ SEAM 1Timestamp, operations and the optional resolves id.
Auxiliary recordSEAM 11–4≥ SEAM 1Intent and cancel records marked by a zero timestamp.
Durability modesSEAM 11–4≥ SEAM 1When a commit is acknowledged; the bytes do not change.
RecoverySEAM 11–4≥ SEAM 1How replay accepts blocks and records.
MANIFEST
MANIFESTSEAM 11–4≥ SEAM 1The sealed version log: header, records and edits.
Header (24 bytes)SEAM 12–4≥ SEAM 1Magic, manifest format, store stamp and generation.
Legacy header (8 bytes)Pre-release only1–4≥ SEAM 1Generation only; read for stores created before the stamped header.
Reading and the torn tailSEAM 11–4≥ SEAM 1How records are read and where reading stops.
Edit encodingSEAM 11–4≥ SEAM 1The byte layout of one version edit.
File entry (add)SEAM 11–4≥ SEAM 1Level, id, size, entries, timestamps and key bounds of one added file.
State and levelsSEAM 11–4≥ SEAM 1How edits are applied and what each field means.
Rewrite and format stampSEAM 12–4≥ SEAM 1Why every open rewrites the MANIFEST and stamps the store.
Tagged sectionsSEAM 11–4≥ SEAM 1The optional sections at the end of an edit.
Tag 1: range tableSEAM 11–4≥ SEAM 1Key-range table with read-write and read-only modes.
Tag 2: global timestampsSEAM 11–4≥ SEAM 1Per-file global timestamp for ingested files.
Tag 3: never writtenSEAM 11–4≥ SEAM 1A tag that decoders reject.
Tag 4: GC floorSEAM 11–4≥ SEAM 1MVCC garbage-collection floor in microseconds.
Tag 5: per-file stampSEAM 12–4≥ SEAM 1The format stamp each data file conforms to.
Tag 6: reservedSEAM 11–4≥ SEAM 1A reserved tag.
Tag 7: range dropsSEAM 11–4≥ SEAM 1Half-open key ranges that hide older data.
SEAM data file
SEAM data fileSEAM 11–4≥ SEAM 1The immutable .stc file: frames, index, bloom, stats and footer.
FrameSEAM 11–4≥ SEAM 1The 5-byte header, body and seal trailer shared by every section.
Block indexSEAM 11–4≥ SEAM 1Last key, timestamp, offset and length of every data block.
Remote files and sidecarSEAM 11–4≥ SEAM 1Cold files in object storage and the local .stci tail.
Per-file stampSEAM 12–4≥ SEAM 1The format stamp recorded for each file in the MANIFEST.
Reader invariantsSEAM 11–4≥ SEAM 1What a reader must verify for every SEAM file.
FooterSEAM 11–4≥ SEAM 1The 96-byte sealed footer at the end of the file.
Footer flagsSEAM 11–4≥ SEAM 1STATS, BLOOM_SKIP, BLOOM_RANGES and BLOCK_COUNTS.
Choosing a footer revisionSEAM 11–4≥ SEAM 1Legal flag combinations and the writer priority order.
Footer revision 1: plainPre-release only1–4≥ SEAM 1No bloom tail, no ranges, no counts.
Footer revision 2: bloom skipPre-release only1–4≥ SEAM 1Bloom filter has a skip-tag tail.
Footer revision 3: codecPre-release only1–4≥ SEAM 1The file contains an LZ4 frame.
Footer revision 4: ranged bloomPre-release only4≥ SEAM 1Bloom filter has a ranged tail.
Footer revision 5: block countsSEAM 14≥ SEAM 1Stats frame with per-block version codes. The default for new files.
Bloom filterSEAM 11–4≥ SEAM 1Split-block Bloom filter over user keys.
Skip-tag tailSEAM 11–4≥ SEAM 1Keys whose first byte is a listed tag are not in the filter.
Ranged tailSEAM 14≥ SEAM 1Keys that start with a listed prefix are not in the filter.
Row block (format 0)SEAM 11–4≥ SEAM 1Prefix-compressed entries with restart points.
Columnar block (format 1)SEAM 11–4≥ SEAM 1The same entries stored column by column, in five revisions.
Layout of revisions 1 to 4SEAM 11–4≥ SEAM 1Header, key columns, timestamps, kinds and values.
Columnar revision 1: basePre-release only1–4≥ SEAM 1The base layout. Read only.
Columnar revision 2: cross-column deltasPre-release only1–4≥ SEAM 1Integer columns stored as deltas against another column. Read only.
Columnar revision 3: FSSTSEAM 11–4≥ SEAM 1Adds the FSST bytes codec. Written when a block needs nothing newer.
Columnar revision 4: key referencesSEAM 13–4≥ SEAM 1Integer value columns derived from a key field.
Columnar revision 5: typed keysSEAM 14≥ SEAM 1Fixed-width key section split into integer fields.
Value modesSEAM 11–4≥ SEAM 1Generic byte values versus row-shaped values.
Column slotSEAM 11–4≥ SEAM 1Reference, tags, ints, floats, bools and bytes of one column.
Key referencesSEAM 13–4≥ SEAM 1A column whose values equal a field of the key.
Typed key sectionSEAM 14≥ SEAM 1Keys of equal length split into integer fields.
Columnar limitsSEAM 11–4≥ SEAM 1Entry, width, cell and size limits.
Block stats frameSEAM 11–4≥ SEAM 1Per-block counts, bounds and column summaries.
Stats revision 1Pre-release only1–4≥ SEAM 1Per-block statistics without version codes.
Stats revision 2SEAM 14≥ SEAM 1Adds a version code per block.
Column statsSEAM 11–4≥ SEAM 1Flags, counts, bounds per column.
Versions codeSEAM 14≥ SEAM 1How a block records whether it holds single versions.
Zone mapsSEAM 11–4≥ SEAM 1Derived at runtime from stats; no separate on-disk map.
Column codecs
Column codecsSEAM 11–4≥ SEAM 1The encodings used inside columnar blocks and frames.
Column container typesSEAM 11–4≥ SEAM 1Flat, IntCol, FloatCol and BytesCol.
Packed integersSEAM 11–4≥ SEAM 1Minimum plus fixed-width bit-packing.
zstd and LZ4 framingSEAM 11–4≥ SEAM 1Frame codec ids, length rules and writer policy.
CONSTSEAM 11–4≥ SEAM 1All values equal.
FOR (frame of reference)SEAM 11–4≥ SEAM 1Packed offsets from a minimum.
PATCHEDSEAM 11–4≥ SEAM 1Packed base with a list of exceptions.
DELTASEAM 11–4≥ SEAM 1Absolute samples plus wrapping differences.
RLESEAM 11–4≥ SEAM 1Run values and run end positions.
Integer DICTSEAM 11–4≥ SEAM 1Sorted distinct integers plus indexes.
Float RAWSEAM 11–4≥ SEAM 1Plain 64-bit floats.
ALPSEAM 11–4≥ SEAM 1Floats stored as scaled integers with exceptions.
XORSEAM 11–4≥ SEAM 1Floats stored as XOR of neighbouring bit patterns.
Bytes PLAINSEAM 11–4≥ SEAM 1Lengths, offset samples and concatenated bytes.
Bytes DICTSEAM 11–4≥ SEAM 1A plain dictionary and indexes.
FRONTSEAM 11–4≥ SEAM 1Front-coded byte strings.
FSSTSEAM 11–4≥ SEAM 1Symbol-table string compression.
Scaled key fields (timestamp scale)SEAM 14≥ SEAM 1Typed-key fields stored as base plus granularity times value.
How writers choose a codecSEAM 11–4≥ SEAM 1Writer heuristics, which are not part of the format.
Postings
PostingsSEAM 11–4≥ SEAM 1Trigram and full-text posting lists and their five block revisions.
Posting keysSEAM 11–4≥ SEAM 1List prefix and the sub-key families.
Posting payloadsSEAM 11–4≥ SEAM 1What each entry carries for trigram, document and full-text lists.
Block headSEAM 11–4≥ SEAM 1The marker, revision byte, count and tier bounds.
Posting revision 1: unmarkedPre-release only1–4≥ SEAM 1No marker byte. Read only.
Posting revision 2: 0xE2SEAM 11–4≥ SEAM 1Front-coded or numeric keys. The writer fallback.
Posting revision 3: 0xE3SEAM 12–4≥ SEAM 1Bit-split integer keys.
Posting revision 4: 0xE4SEAM 14≥ SEAM 1Multi-field tuple keys.
Posting revision 5: 0xE5SEAM 14≥ SEAM 1Wraps an inner block and adds term positions.
Integer groupsSEAM 12–4≥ SEAM 1Frame-packed integer runs used by revisions 3 and 4.
Key encodings
Key encodingsSEAM 11–4≥ SEAM 1How logical rows, indexes and catalog entries map to keys.
Internal key and MVCCSEAM 11–4≥ SEAM 1User key, timestamp, kind and ordering.
Order-preserving valuesSEAM 11–4≥ SEAM 1The bytes encode_key_value emits.
Keyspace mapSEAM 11–4≥ SEAM 1What each first byte means.
Table rowsSEAM 11–4≥ SEAM 1Primary-key layout of row keys.
Interleaved tablesSEAM 11–4≥ SEAM 1Child rows stored under their parent.
Row format v1SEAM 11–4≥ SEAM 1The value layout shared by SQL and the columnar decoder.
Index entriesSEAM 11–4≥ SEAM 1Unique, non-unique and JSON-path index keys and values.
Foreign keysSEAM 11–4≥ SEAM 1Reverse lookups reuse ordinary indexes.
RESP keysSEAM 11–4≥ SEAM 1Key layout used by the Redis-compatible layer.
Materialized view keysSEAM 11–4≥ SEAM 1View ids, cursor keys and groups.
Catalog records
Catalog recordsSEAM 11–4≥ SEAM 1Keys and values under the 0x00 prefix.
Table definitionSEAM 11–4≥ SEAM 1The encoded table record.
Column definitionSEAM 11–4≥ SEAM 1Name, type, flags and default.
Index definitionSEAM 11–4≥ SEAM 1Index id, name, kind and columns.
Extension tagsSEAM 11–4≥ SEAM 1The additive extension list at the end of a table definition.
Ext R: relationsSEAM 11–4≥ SEAM 1Foreign keys and the interleave parent.
Ext S: schemaSEAM 11–4≥ SEAM 1Column ids, fills and hidden columns.
Ext M: metadataSEAM 11–4≥ SEAM 1SQL types, defaults and comments.
Ext I: INCLUDE columnsSEAM 11–4≥ SEAM 1Covering columns of an index.
Ext D: DESC flagsSEAM 11–4≥ SEAM 1Descending index parts.
Ext C: compressionSEAM 11–4≥ SEAM 1Per-table compression override.
Ext B: bloom offSEAM 11–4≥ SEAM 1Tables created WITH (bloom = off).
Ext V: materialized viewsSEAM 11–4≥ SEAM 1View id, building flag, name and SQL.
Ext X: search optionsSEAM 11–4≥ SEAM 1Analyzer and positions trailer.
Other catalog recordsSEAM 11–4≥ SEAM 1Users, grants, sequences, databases and blob metadata.