Skip to main content

Module sector

Module sector 

Source
Expand description

Sector header and in-RAM sector index.

Structs§

LogId
Identity of a logical log.
SectorFooter
A sealed sector’s SectorSummary, written into the sector’s last page.
SectorHeader
Wire-format sector header for zerocopy serialization.
SectorSummary
In-RAM summary of a sector for fast queries.

Enums§

SectorClass
How a sector’s header reads to a database configured with a given LogId.
SectorState
State of a sector in the ring buffer.

Constants§

SECTOR_FOOTER_MAGIC
Sector footer magic: “SDF2”.
SECTOR_FOOTER_SIZE
Size of the sector footer in bytes (52).
SECTOR_FOOTER_VERSION
Format version carried in the sector footer.
SECTOR_FORMAT_VERSION
Format version carried in the sector header.
SECTOR_HEADER_SIZE
Size of the sector header in bytes (28, SD05).
SECTOR_MAGIC
Sector magic bytes: “SD05” (current and only supported format).

Functions§

sensor_id_to_bit
Map a sensor ID to a single bit in a 64-bit bloom filter using Fibonacci hashing.