Skip to main content

merge_series_columns_of

Function merge_series_columns_of 

Source
fn merge_series_columns_of(
    points: impl Iterator<Item = usize>,
    fields: usize,
) -> usize
Expand description

The bytes one result series’ columns take: the rows it writes – one per distinct point of its samples, which is what the builder writes a row for – times a row’s columns. The points arrive sorted, so a distinct point is a point that differs from the one before it.

A row is the value and validity column of every field, charged twice for the capacity each column grows to, and the histogram index column of every field. The index columns are counted for every field rather than only the ones that happen to carry a histogram, so the figure over-reserves rather than missing a column, and nothing here follows how a column grows.