risingwave_storage::monitor::monitored_storage_metrics

Trait StateStoreIterStatsTrait

source
pub(crate) trait StateStoreIterStatsTrait: Send {
    type Item: IterItem;

    // Required methods
    fn new(
        table_id: u32,
        metrics: &MonitoredStorageMetrics,
        iter_init_duration: Duration,
    ) -> Self;
    fn observe(&mut self, item: <Self::Item as IterItem>::ItemRef<'_>);
    fn report(&mut self, table_id: u32, metrics: &MonitoredStorageMetrics);
}

Required Associated Types§

Required Methods§

source

fn new( table_id: u32, metrics: &MonitoredStorageMetrics, iter_init_duration: Duration, ) -> Self

source

fn observe(&mut self, item: <Self::Item as IterItem>::ItemRef<'_>)

source

fn report(&mut self, table_id: u32, metrics: &MonitoredStorageMetrics)

Object Safety§

This trait is not object safe.

Implementors§