Skip to main content

Module state

Module state 

Source
Expand description

The aggregate-state chunk a native Partial/Final aggregate passes between executions.

A state chunk is not a query value. It names the group a partition folded and the grid positions that group has contributions at, and it carries the accumulator components its aggregate declared – nothing else. The conversions here are the only place kernel state (PartialAggregate) and frame state ([StateSeries]) meet, so a hole in one is a hole in the other: a field with no contribution at a carried position stays absent through both directions rather than being filled in with a zero that a later merge would count.

Enums§

StateChunk
One partition’s aggregate state, either in producer series form or as a decoded consumer row.

Functions§

ensure_bound_state 🔒
Rejects a bound state whose kind or component layout is not what this node binds.
op_of_state 🔒
The aggregate a state kind is the state of.
slice_bytes 🔒
Transient bytes for the selected state array consumed by a decoded row.
state_bytes 🔒
Bytes a state chunk holds: labels, axis runs, and one sparse state vector per field.
state_chunk_from_partial 🔒
Hands one partition’s kernel state over as the frame state a consumer reads.
state_row_bytes 🔒
Bytes held by one decoded state row’s owned wrappers and retained payloads.
state_row_from_frame_row 🔒
Builds the executor’s Arrow-backed state row from one decoded frame row.
state_row_of 🔒
Builds the executor’s state row for one exported row, as its producer declared it.