Skip to main content

Module read

Module read 

Source
Available on crate feature archive only.
Expand description

Resolving an archive to segment bytes, live tail included. Reading an archive: a stream’s segments, oldest first, with its live WAL tail spliced on as the newest one.

This is the whole read side of the container. What dendro hands back is Parquet bytes — it does not open them, and it has no opinion about the query engine that will. Everything above this line is the caller’s.

Structs§

Overview
Everything about an archive that does not require reading a segment: the file’s own size and page accounting, and the whole catalog.
SourceCatalog
A source as the catalog sees it, with every stream it currently holds. Fields are added without a major version; construct one only by asking dendro for it, and match with a wildcard arm.
SourceSegments
One source’s contents, resolved to bytes. Fields are added without a major version; construct one only by asking dendro for it, and match with a wildcard arm.
StreamCatalog
A stream as the catalog sees it: how much is sealed, how much is live, and the span the two cover. No BLOB is read to answer this. Fields are added without a major version; construct one only by asking dendro for it, and match with a wildcard arm.

Enums§

SegmentBytes
Where one stream’s segment bytes come from, resolved lazily.

Functions§

catalog
Everything the catalog knows about the archive, from one snapshot and without reading a segment.
describe
Describe an archive without reading a segment. See Overview.
probe
One segment of a stream, for a caller that needs to learn the stream’s schema — the columns, the names — before deciding whether to read it.
read_archive
Every source in the archive at path.
stream_indexes
One stream’s indexes, in the same order as stream_segments returns its segments: the sealed ones from the catalog, then the live tail’s.
stream_range
A stream’s segments overlapping [start, end], oldest first, with the live tail spliced on as the newest when it holds a row in the range.
stream_segments
One stream’s parquet segments, oldest first: its sealed segments in seq order, then its live WAL tail materialized as the newest segment.