Trait mz_catalog::durable::persist::ApplyUpdate

source ·
pub(crate) trait ApplyUpdate<T: IntoStateUpdateKindJson> {
    // Required method
    fn apply_update(
        &mut self,
        update: StateUpdate<T>,
        current_fence_token: &mut FenceableToken,
        metrics: &Arc<Metrics>,
    ) -> Result<Option<StateUpdate<T>>, FenceError>;
}

Required Methods§

source

fn apply_update( &mut self, update: StateUpdate<T>, current_fence_token: &mut FenceableToken, metrics: &Arc<Metrics>, ) -> Result<Option<StateUpdate<T>>, FenceError>

Process and apply update.

Returns Some if update should be cached in memory and None otherwise.

Implementors§