Skip to content

StoreLayout

File names and streamed attributes of one kind of store.

attrs[0] is the primary attribute, whose keys say whether an entry exists.

shared_attr names the canonical file's non-streamed attribute whose cached objects payloads may reference, or is None when payloads are self-contained.

StoreLayout

StoreLayout(canonical_filename: str, ledger_tag: str, payload_tag: str, attrs: tuple[StreamedAttr, ...], shared_attr: str | None = None) -> None

Attributes

Name Type Value Doc
attrs tuple[StreamedAttr, ...] unset
canonical_filename str unset
ledger_tag str unset
payload_tag str unset
primary StreamedAttr read-only property The attribute whose keys define which entries exist.
shared_attr str | None None

attr

attr(name: str) -> StreamedAttr

The attribute called name; ValueError if there is none.