Skip to content

Columnar revision 4: key references

Columnar revision 4 adds key references: an integer value column that is derived from a field of the key instead of being stored (SPEC V714). Its first byte is 4.

SEAM 1 writers produce this revision. A writer emits it when a block needs key references and does not need revision 5.

The column slot reference is now count(c+1), one value wider than before, so c + 1 can name the column itself. A reference equal to c + 1 marks a key reference. That column stores a key offset, then tags, floats, bools and bytes, and has no ints stream.

Everything else is the layout of revisions 1 to 4.

A reader expands key references into the revision 3 layout in memory, rebuilding the ints from the keys. A corrupt reference is Corrupt.