pub struct StandardMultiStore(/* private fields */);Implementations§
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn get_many( &self, keys: &[EncodedKey], version: CommitVersion, ) -> Result<HashMap<EncodedKey, MultiVersionRow>>
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn range_next( &self, cursor: &mut MultiVersionRangeCursor, range: EncodedKeyRange, scope: MultiVersionScope, batch_size: u64, ) -> Result<MultiVersionBatch>
pub fn range( &self, range: EncodedKeyRange, scope: MultiVersionScope, batch_size: usize, ) -> MultiVersionRangeIter ⓘ
pub fn range_rev( &self, range: EncodedKeyRange, scope: MultiVersionScope, batch_size: usize, ) -> MultiVersionRangeRevIter ⓘ
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn new(config: MultiStoreConfig) -> Result<Self>
pub fn configure_read_buffer_capacity(&self, capacity: usize)
pub fn configure_read_buffer(&self, resident_pages: usize, page_size_rows: u64)
pub fn invalidate_read_key(&self, key: &EncodedKey)
pub fn clear_read(&self)
pub fn set_row_settings_provider(&self, provider: Arc<dyn ShapePersistence>)
pub fn set_eviction_watermark(&self, watermark: Arc<dyn EvictionWatermark>)
pub fn clear_eviction_watermark(&self)
pub fn commit(&self) -> Option<&MultiCommitBufferTier>
pub fn persistent(&self) -> Option<&MultiPersistentTier>
pub fn flush_pending_blocking(&self)
pub fn flush_all_blocking(&self)
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn testing_memory() -> Self
pub fn testing_memory_with_eventbus(event_bus: EventBus) -> Self
pub fn testing_memory_with_persistent_sqlite() -> (Self, SqliteTempPathGuard)
pub fn testing_memory_with_persistent_sqlite_with_eventbus( event_bus: EventBus, ) -> (Self, SqliteTempPathGuard)
pub fn testing_persistent_sqlite_only() -> (Self, SqliteTempPathGuard)
Trait Implementations§
Source§impl Clone for StandardMultiStore
impl Clone for StandardMultiStore
Source§fn clone(&self) -> StandardMultiStore
fn clone(&self) -> StandardMultiStore
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 Deref for StandardMultiStore
impl Deref for StandardMultiStore
Source§impl MultiVersionContains for StandardMultiStore
impl MultiVersionContains for StandardMultiStore
fn contains(&self, key: &EncodedKey, version: CommitVersion) -> Result<bool>
fn contains_with_options( &self, key: &EncodedKey, version: CommitVersion, _options: ReadOptions, ) -> Result<bool, Error>
Source§impl MultiVersionGet for StandardMultiStore
impl MultiVersionGet for StandardMultiStore
fn get( &self, key: &EncodedKey, version: CommitVersion, ) -> Result<Option<MultiVersionRow>>
fn get_with_options( &self, key: &EncodedKey, version: CommitVersion, _options: ReadOptions, ) -> Result<Option<MultiVersionRow>, Error>
Source§impl MultiVersionGetPrevious for StandardMultiStore
impl MultiVersionGetPrevious for StandardMultiStore
fn get_previous_version( &self, key: &EncodedKey, before_version: CommitVersion, ) -> Result<Option<MultiVersionRow>>
impl MultiVersionStore for StandardMultiStore
Auto Trait Implementations§
impl !RefUnwindSafe for StandardMultiStore
impl !UnwindSafe for StandardMultiStore
impl Freeze for StandardMultiStore
impl Send for StandardMultiStore
impl Sync for StandardMultiStore
impl Unpin for StandardMultiStore
impl UnsafeUnpin for StandardMultiStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more