pub struct StandardMultiStore(/* private fields */);Implementations§
Source§impl StandardMultiStore
impl StandardMultiStore
Sourcepub fn range_next(
&self,
cursor: &mut MultiVersionRangeCursor,
range: EncodedKeyRange,
version: CommitVersion,
batch_size: u64,
) -> Result<MultiVersionBatch>
pub fn range_next( &self, cursor: &mut MultiVersionRangeCursor, range: EncodedKeyRange, version: CommitVersion, batch_size: u64, ) -> Result<MultiVersionBatch>
Fetch the next batch of entries, continuing from cursor position.
This properly handles high version density by scanning until batch_size
unique logical keys are collected OR all tiers are exhausted.
Sourcepub fn range(
&self,
range: EncodedKeyRange,
version: CommitVersion,
batch_size: usize,
) -> MultiVersionRangeIter ⓘ
pub fn range( &self, range: EncodedKeyRange, version: CommitVersion, batch_size: usize, ) -> MultiVersionRangeIter ⓘ
Create an iterator for forward range queries.
This properly handles high version density by scanning until batch_size unique logical keys are collected. The iterator yields individual entries and maintains cursor state internally.
Sourcepub fn range_rev(
&self,
range: EncodedKeyRange,
version: CommitVersion,
batch_size: usize,
) -> MultiVersionRangeRevIter ⓘ
pub fn range_rev( &self, range: EncodedKeyRange, version: CommitVersion, batch_size: usize, ) -> MultiVersionRangeRevIter ⓘ
Create an iterator for reverse range queries.
This properly handles high version density by scanning until batch_size unique logical keys are collected. The iterator yields individual entries in reverse key order and maintains cursor state internally.
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn new(config: MultiStoreConfig) -> Result<Self>
Sourcepub fn hot(&self) -> Option<&HotStorage>
pub fn hot(&self) -> Option<&HotStorage>
Get access to the hot storage tier.
Returns None if the hot tier is not configured.
Source§impl StandardMultiStore
impl StandardMultiStore
pub fn testing_memory() -> Self
pub fn testing_memory_with_eventbus(event_bus: EventBus) -> Self
Trait Implementations§
Source§impl Clone for StandardMultiStore
impl Clone for StandardMultiStore
Source§fn clone(&self) -> StandardMultiStore
fn clone(&self) -> StandardMultiStore
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Deref for StandardMultiStore
impl Deref for StandardMultiStore
Source§impl MultiVersionContains for StandardMultiStore
impl MultiVersionContains for StandardMultiStore
Source§fn contains(&self, key: &EncodedKey, version: CommitVersion) -> Result<bool>
fn contains(&self, key: &EncodedKey, version: CommitVersion) -> Result<bool>
Source§impl MultiVersionGet for StandardMultiStore
impl MultiVersionGet for StandardMultiStore
Source§fn get(
&self,
key: &EncodedKey,
version: CommitVersion,
) -> Result<Option<MultiVersionValues>>
fn get( &self, key: &EncodedKey, version: CommitVersion, ) -> Result<Option<MultiVersionValues>>
Source§impl MultiVersionGetPrevious for StandardMultiStore
impl MultiVersionGetPrevious for StandardMultiStore
Source§fn get_previous_version(
&self,
key: &EncodedKey,
before_version: CommitVersion,
) -> Result<Option<MultiVersionValues>>
fn get_previous_version( &self, key: &EncodedKey, before_version: CommitVersion, ) -> Result<Option<MultiVersionValues>>
impl MultiVersionStore for StandardMultiStore
Auto Trait Implementations§
impl Freeze for StandardMultiStore
impl !RefUnwindSafe for StandardMultiStore
impl Send for StandardMultiStore
impl Sync for StandardMultiStore
impl Unpin for StandardMultiStore
impl UnsafeUnpin for StandardMultiStore
impl !UnwindSafe 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
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>
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>
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