risingwave_storage::store_impl::dyn_state_store

Trait DynStateStoreRead

source
pub trait DynStateStoreRead: StaticSendSync {
    // Required methods
    fn get_keyed_row<'life0, 'async_trait>(
        &'life0 self,
        key: TableKey<Bytes>,
        epoch: u64,
        read_options: ReadOptions,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Option<StateStoreKeyedRow>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn iter<'life0, 'async_trait>(
        &'life0 self,
        key_range: TableKeyRange,
        epoch: u64,
        read_options: ReadOptions,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn DynStateStoreIter<StateStoreKeyedRow> + 'static>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn rev_iter<'life0, 'async_trait>(
        &'life0 self,
        key_range: TableKeyRange,
        epoch: u64,
        read_options: ReadOptions,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn DynStateStoreIter<StateStoreKeyedRow> + 'static>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn get_keyed_row<'life0, 'async_trait>( &'life0 self, key: TableKey<Bytes>, epoch: u64, read_options: ReadOptions, ) -> Pin<Box<dyn Future<Output = StorageResult<Option<StateStoreKeyedRow>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn iter<'life0, 'async_trait>( &'life0 self, key_range: TableKeyRange, epoch: u64, read_options: ReadOptions, ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn DynStateStoreIter<StateStoreKeyedRow> + 'static>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn rev_iter<'life0, 'async_trait>( &'life0 self, key_range: TableKeyRange, epoch: u64, read_options: ReadOptions, ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn DynStateStoreIter<StateStoreKeyedRow> + 'static>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Trait Implementations§

source§

impl AsRef<dyn DynStateStoreRead> for StateStorePointer<Arc<dyn DynStateStore>>

source§

fn as_ref(&self) -> &dyn DynStateStoreRead

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<dyn DynStateStoreRead> for StateStorePointer<Arc<dyn DynStateStoreRead>>

source§

fn as_ref(&self) -> &dyn DynStateStoreRead

Converts this type into a shared reference of the (usually inferred) input type.

Implementors§