pub struct MaterializedView {
pub expr: Expr,
pub result: Series,
pub base_snapshot: EvalContext,
}Expand description
Cached result of a previous full evaluation, used as base for incremental updates.
Fields§
§expr: Expr§result: Series§base_snapshot: EvalContextImplementations§
Source§impl MaterializedView
impl MaterializedView
pub fn from_full_eval( expr: &Expr, context: &EvalContext, policy: &RuntimePolicy, ledger: &mut EvidenceLedger, ) -> Result<Self, ExprError>
Sourcepub fn apply_delta(
&mut self,
delta: &Delta,
context: &EvalContext,
policy: &RuntimePolicy,
ledger: &mut EvidenceLedger,
) -> Result<&Series, ExprError>
pub fn apply_delta( &mut self, delta: &Delta, context: &EvalContext, policy: &RuntimePolicy, ledger: &mut EvidenceLedger, ) -> Result<&Series, ExprError>
Apply a delta (appended rows) incrementally.
For linear expressions (series refs, arithmetic, anchored comparisons), only the new rows are computed and concatenated to the existing result. Falls back to full re-evaluation for expressions that cannot be incrementally maintained.
Trait Implementations§
Source§impl Clone for MaterializedView
impl Clone for MaterializedView
Source§fn clone(&self) -> MaterializedView
fn clone(&self) -> MaterializedView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for MaterializedView
impl RefUnwindSafe for MaterializedView
impl Send for MaterializedView
impl Sync for MaterializedView
impl Unpin for MaterializedView
impl UnsafeUnpin for MaterializedView
impl UnwindSafe for MaterializedView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more