Skip to main content

merge_field

Function merge_field 

Source
fn merge_field(
    readers: &mut [FieldReader<'_>],
    rows: &[(usize, usize, usize)],
    labels: &Vec<(Arc<str>, Arc<str>)>,
) -> Result<Samples>
Expand description

Builds one field of the merged series, one sample per merged row.

The rows are walked in output order. A row holding a value of this field in one member continues the run of rows that member holds in one dense segment, and a run is handed out as one [Samples::slice]; the rows another field fills become one null run, so the field stays aligned with the merged axis while sharing the values it carries.