Skip to main content

declared_state_of

Function declared_state_of 

Source
fn declared_state_of(
    declared: &AggregateStateSchema,
    series: &SeriesSchema,
    chunk: &StateChunk,
) -> bool
Expand description

Whether chunk is a publication of the state this node declared it routes.

A state frame says what it is in its schema: the aggregate kind, the ordered component layout and the series - fields and evaluation grid - it is of are all part of the frame read_state_batches decodes, so a batch under any other schema is refused there before a row of it is routed. A chunk says the same three things on the value: the layout in the StateChunk::Series it carries (or in the row’s fields), and the grid each group’s axis is on. This is what holds a handed-over publication to the standard the frame path holds a batch to; anything less would let a child hand over state this node never declared and have it merged as that state.