Skip to main content

evaluated_vector

Function evaluated_vector 

Source
fn evaluated_vector(
    ty: &NativeType,
) -> Option<(&Arc<SeriesSchema>, &Arc<EvalGrid>)>
Expand description

The schema and grid of an evaluated vector, or None when ty is raw samples, a scalar or state.

An operation over values needs both halves: that its input is samples at all, which rules out a scalar, and that those samples are stamped onto a grid, which rules out raw samples. The schema comes back with the grid because a consumer that needs the grid also declares a field layout for the fields the schema carries.