Skip to main content

Module segment

Module segment 

Source
Available on crate feature archive only.
Expand description

Segments, and the encoder boundary. Segments: what a stream’s rows become when they are sealed, and the boundary across which dendro does not know what a row means.

Structs§

EncodeContext
Which stream an encode is for, and whose: what an encoder is told beside the rows. See SegmentEncoder::encode.
Segment
One sealed segment: parquet bytes plus the catalog facts about what is in them.

Traits§

SegmentEncoder
Turns a stream’s WAL rows into one parquet segment.

Functions§

check_encoder
Refuse a source written by a different encoder version than encoder reports. Either side reporting nothing is not a mismatch: an encoder that does not version itself, or a source from before the key, is unchecked.
encode_batch
Encode one RecordBatch as a segment’s parquet bytes, with the archive’s writer properties. The usual last step of a SegmentEncoder::encode.
materialize
Run an encoder over a run of WAL rows and validate the result.
writer_props
The parquet writer properties every segment in an archive is written with.

Type Aliases§

EncodeResult
What an encoder returns.