fn encode_state_fields(
field_types: &Fields,
rows: &[FrameRow],
) -> Result<StructArray>Expand description
The fields column of a state frame: one list per row, one item per carried position.
A state frame’s per-field list carries one item per grid position the row holds, and an item is absent exactly where that field has no contribution at that position. The absence lives on the item - the child struct’s validity - not on the list’s own validity, which is per row: a row always has a list, with zero or more items in it.
One encoder builds this column, so a state frame and a state row handed over in process are the
same bytes: StateFrameRow::from_state_series calls it for a single group, and the frame
encoder calls it for the rows it is about to write.