pub struct PhysicalLsmJournalStore<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> { /* private fields */ }Expand description
Bounded physical LSM with synchronous full compaction. Disk payloads are read from actual pages; only metadata is indexed. Owns its WAL and namespace by value, returned by into_parts without closing them. Table leases are closed explicitly; use close to observe failures (Drop is best effort only). Retain shared provider handles if constructor-failure cleanup must be retried.
Implementations§
Source§impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> PhysicalLsmJournalStore<W, P>
impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> PhysicalLsmJournalStore<W, P>
pub fn open( wal: W, provider: P, options: LsmStoreOptions, ) -> Result<Self, LinkError>
pub fn flush(&mut self) -> Result<(), LinkError>
pub fn compact(&mut self) -> Result<(), LinkError>
pub fn close(&mut self) -> Result<(), LinkError>
pub fn into_parts(self) -> Result<(W, P), LinkError>
Trait Implementations§
Source§impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> AtomicJournalStore for PhysicalLsmJournalStore<W, P>
impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> AtomicJournalStore for PhysicalLsmJournalStore<W, P>
Source§impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> Drop for PhysicalLsmJournalStore<W, P>
impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> Drop for PhysicalLsmJournalStore<W, P>
Source§impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> JournalMaintenanceStore for PhysicalLsmJournalStore<W, P>
impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> JournalMaintenanceStore for PhysicalLsmJournalStore<W, P>
fn scan_namespace( &mut self, options: JournalScanOptions, ) -> Result<Vec<JournalNamespaceEntry>, LinkError>
fn compare_delete( &mut self, key: &str, expected_generation: u64, ) -> Result<bool, LinkError>
Auto Trait Implementations§
impl<W, P> Freeze for PhysicalLsmJournalStore<W, P>
impl<W, P> RefUnwindSafe for PhysicalLsmJournalStore<W, P>where
W: RefUnwindSafe,
P: RefUnwindSafe,
impl<W, P> Send for PhysicalLsmJournalStore<W, P>
impl<W, P> Sync for PhysicalLsmJournalStore<W, P>
impl<W, P> Unpin for PhysicalLsmJournalStore<W, P>
impl<W, P> UnsafeUnpin for PhysicalLsmJournalStore<W, P>where
W: UnsafeUnpin,
P: UnsafeUnpin,
impl<W, P> UnwindSafe for PhysicalLsmJournalStore<W, P>where
W: UnwindSafe,
P: UnwindSafe,
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