pub struct ComputedMeta {
pub lookback: usize,
pub valid_rows: usize,
pub state: Option<Vec<f64>>,
pub origin: usize,
}Expand description
Metadata for a materialized (cached) directive column: the directive that
produced it, its lookback, and how many leading rows currently hold valid
values. After an append, the new rows are stale (NaN) and valid_rows lags
height until fulfill recomputes the tail.
Fields§
§lookback: usizeThe directive’s lookback (warm-up rows).
valid_rows: usizeRows [0, valid_rows) currently hold valid values.
state: Option<Vec<f64>>Carried recursive state for an O(new-rows) append resume: a small,
fixed-size per-indicator vector capturing the internal recursive state as
of the last valid row (valid_rows - 1), so an append/fulfill can
continue the recursion over only the new rows, bit-identical to a fresh
full recompute. None when the directive has no resume implementation (it
then falls back to the correct full recompute) or the state is unknown
(e.g. after a slice that did not reach the parent’s valid_rows).
origin: usizeThe original-frame row that THIS (possibly sliced) frame’s row 0 maps to.
0 for a freshly-computed column; a contiguous slice from start bumps it
by start. It lets an absolute-position indicator (the index family —
maxindex/minindex/minmaxindex) keep emitting ABSOLUTE positions after a
head-dropping slice: a sub-frame position p is original row p + origin,
matching the verbatim-carried (original-absolute) head. Recursive value
indicators ignore it (their state is offset-free).
Trait Implementations§
Source§impl Clone for ComputedMeta
impl Clone for ComputedMeta
Source§fn clone(&self) -> ComputedMeta
fn clone(&self) -> ComputedMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more