Expand description
Streaming boundary between finite raw-series chunks and DataFusion record batches.
Schema fields identify the ordered logical payload fields and codec layout; additional
application metadata is permitted when stable across the stream. A key-encoded frame also
declares its own label decode description, and the frame is the sole source of decode
information: unpack_raw_series reads the fields, the label mode, the description, and the
producer ordering from the received schema, keeps the description on the returned stream, and
therefore needs no [RawLabelSource]. A caller that holds a scan-bound identity β the physical
region key layout a decoded identity came from β compares that identityβs declared label
decode layout with ensure_frame_matches_label_source instead of passing it as a decode
input; that comparison is equality of the description alone and proves nothing about region
identity or provenance, and neither side is authenticated as field provenance. This adapter
preserves
scan candidates only; it is not a residual filter, authorization check, remote transport, or
compaction boundary. Raw frames accept all three [SeriesOrdering] declarations, while evaluated
frames accept only Contiguous. Raw Interleaved supports independently closed producer
fragment chains in sequence, including recurring keys; it does not multiplex open chains.
An evaluated frame is the same physical family: pack_evaluated_series and
unpack_evaluated_series carry computed values under complete labels and grid positions, so a
compute consumer needs neither a storage key nor a scan binding to read them.
StructsΒ§
- Evaluated
Sequence Validator - Cross-chunk validation state for evaluated chains.
- Pack
Batches π - The batching half of a pack stream: the builder, the cursor installed in it, and the declared schema every ready batch is published under.
- Pack
Evaluated πStream - The pack stream of
pack_evaluated_series. - Pack
State πStream - The pack stream of
pack_aggregate_state. - Pack
Stream π - Pending
Flush π - Bounded batching across a pending raw source.
- Sequence
Validator - Cross-chunk validation state for raw producer fragment chains. Every chainβs chunks must be
contiguous, including for
Interleaved; this validator checks adjacent chunks only and retains the previous owned key (not an Arrow buffer), timestamp, metric, and finality. AnInterleavedchain releases that state on closure, so later fragment chains may recur with the same key, labels, and timestamps independently. - Unpack
Evaluated πStream - The unpack stream of
unpack_evaluated_series. - Unpack
State πStream - The unpack stream of
unpack_aggregate_state. - Unpack
Stream π
EnumsΒ§
- Pending
Batching - How a pack stream treats the rows it has buffered when its source reports
Pending.
ConstantsΒ§
- MAX_
EMPTY_ πBATCHES_ PER_ POLL - How many empty batches one poll reads before yielding, so a stream of them cannot hold the task.
- ORDERING_
KEY π - PENDING_
FLUSH_ πDELAY - How long a pending source may keep buffered rows before they are published as a batch of their own.
FunctionsΒ§
- codec_
error π - current_
runtime_ πid - The runtime that would own a timer armed by the current poll, if there is one.
- declared_
label_ πmode - Returns the label mode a frame declares: a key frame describes its key, an explicit frame carries complete labels and declares no description.
- ensure_
contiguous_ πordering - Rejects an evaluated frame that claims more order than its producer promised.
- ensure_
declared_ πschema - Rejects an
expectedseries schema the frame does not declare. - ensure_
frame_ matches_ label_ source - Checks that a frame declares the label decode layout a scan-bound binding describes.
- frame_
schema_ with - Assembles a declared frame schema from an explicit label mode and decode description.
- invalid π
- label_
decode_ spec - Derives the label decode description a frame must carry for this binding.
- label_
mode π - pack_
aggregate_ state - Packs aggregate-state chunks into bounded DataFusion record batches.
- pack_
evaluated_ series - Packs a stream of evaluated chunks into DataFusion record batches incrementally.
- pack_
raw_ series - Packs a storage raw-series stream into DataFusion record batches incrementally.
- pack_
raw_ series_ with - Packs a storage raw-series stream with the pending batching its poller can support.
- raw_
series_ frame_ schema_ with_ ordering - Builds the canonical raw frame schema with the producerβs label binding and ordering.
- series_
frame_ ordering - Reads the producer ordering declared by a complete v2 frame schema.
- unpack_
aggregate_ state - Unpacks aggregate-state frames while retaining Arrow-backed state rows.
- unpack_
error π - Wraps a decode or validation error as the boxed error an unpack stream reports.
- unpack_
evaluated_ series - Unpacks DataFusion batches declared by
pack_evaluated_series. - unpack_
raw_ series - Unpacks DataFusion batches declared by
pack_raw_series. - upstream_
error π
Type AliasesΒ§
- Sendable
Evaluated Series Stream - A stream of evaluated series chunks and their finality.
- Sendable
State Frame Stream - A stream of decoded state rows retaining typed handles into their Arrow batch.
- Sendable
State Series Stream - A stream of aggregate-state chunks and their producer-local finality.