pub struct LiveRowsMaterializer { /* private fields */ }Expand description
Stateful reducer that materializes the current row set from change events.
Implementations§
Source§impl LiveRowsMaterializer
impl LiveRowsMaterializer
Sourcepub fn new(config: LiveRowsConfig) -> LiveRowsMaterializer
pub fn new(config: LiveRowsConfig) -> LiveRowsMaterializer
Create a new materializer.
Sourcepub fn rows(&self) -> &[HashMap<String, KalamCellValue>]
pub fn rows(&self) -> &[HashMap<String, KalamCellValue>]
Borrow the current materialized rows.
Sourcepub fn apply(&mut self, event: ChangeEvent) -> Option<LiveRowsEvent>
pub fn apply(&mut self, event: ChangeEvent) -> Option<LiveRowsEvent>
Apply a low-level change event and emit a high-level snapshot when relevant.
Trait Implementations§
Source§impl Clone for LiveRowsMaterializer
impl Clone for LiveRowsMaterializer
Source§fn clone(&self) -> LiveRowsMaterializer
fn clone(&self) -> LiveRowsMaterializer
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 moreSource§impl Debug for LiveRowsMaterializer
impl Debug for LiveRowsMaterializer
Source§impl Default for LiveRowsMaterializer
impl Default for LiveRowsMaterializer
Source§fn default() -> LiveRowsMaterializer
fn default() -> LiveRowsMaterializer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LiveRowsMaterializer
impl RefUnwindSafe for LiveRowsMaterializer
impl Send for LiveRowsMaterializer
impl Sync for LiveRowsMaterializer
impl Unpin for LiveRowsMaterializer
impl UnsafeUnpin for LiveRowsMaterializer
impl UnwindSafe for LiveRowsMaterializer
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