Expand description
Explicit sample framing and bounded two-level metadata pages.
StructsΒ§
- Areas π
- The three regions of one group, in file order: column payloads, exact series keys, pages.
- Block π
- Block
Order π - The ordering boundary retained between pages and groups, without column descriptors.
- Bounds π
- Column π
- Directory
Footer π - Group π
- KeyArea π
- A groupβs key area: exact series keys stored back to back, outside every metadata page.
- KeyRef π
- The location of one exact series key inside a groupβs key area.
- Page
Reference π - Payload
Reference π
EnumsΒ§
- Page π
ConstantsΒ§
- BLOCK_
FIXED_ πBYTES - Fixed part of a block descriptor, before its 36-byte column descriptors.
- CHUNK_
LIMIT π - Largest decoded block payload, and therefore the largest frame a decoder has to decompress.
- FOOTER_
MAGIC π - FOOTER_
SIZE π - GROUP_
BYTES π - One part-directory entry. The first group starts after the header; subsequent groups start at the end of the preceding root page.
- HEADER_
SIZE π - MAGIC π
- MAX_
GROUPS π - Limit a single directory fetch even for a malformed footer.
- MIN_
BLOCK_ πBYTES - Smallest possible block descriptor: the fixed part plus its three mandatory columns.
- PAGE_
LIMIT π - ROOT_
CAPACITY π - SMALL_
CHUNK_ πBYTES
FunctionsΒ§
- descriptor_
bytes π - Descriptor bytes for a block with
columnscolumn descriptors. - encode_
directory π - Encodes the directory followed by its fixed-size footer.
- header π
- pack_
chunk_ πtail - Pack the last encoded column in place, keeping its offset within the block buffer.
- pack_
page_ πinto - validate_
header π