Skip to main content

Module metadata

Module metadata 

Source
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 πŸ”’
BlockOrder πŸ”’
The ordering boundary retained between pages and groups, without column descriptors.
Bounds πŸ”’
Column πŸ”’
DirectoryFooter πŸ”’
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.
PageReference πŸ”’
PayloadReference πŸ”’

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 columns column 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 πŸ”’