fn project_selection(
schema: &Arc<SeriesSchema>,
metric: SeriesLabels,
time: &RawTimestamps,
fields: &SeriesFields,
indices: &[u64],
evaluation_timestamps: &[i64],
value: impl Fn(SampleRef<'_>, i64) -> Result<f64>,
) -> Result<Option<Series>>Expand description
One series over an instant selection, each field holding value(sample, original time) where
the selected row has a sample for it.
The selection is indices and evaluation_timestamps as select_instants returns them: one
source row and one grid timestamp per selected point, with positions increasing and rows not
decreasing. An @ selection, which reads one row at every point, repeats that row; it is the
caller’s to build. A selection off the grid, going back, or naming a row the series does not
have fails.