Skip to main content

PhysicalLsmJournalStore

Struct PhysicalLsmJournalStore 

Source
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>

Source

pub fn open( wal: W, provider: P, options: LsmStoreOptions, ) -> Result<Self, LinkError>

Source

pub fn flush(&mut self) -> Result<(), LinkError>

Source

pub fn compact(&mut self) -> Result<(), LinkError>

Source

pub fn close(&mut self) -> Result<(), LinkError>

Source

pub fn into_parts(self) -> Result<(W, P), LinkError>

Trait Implementations§

Source§

impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> AtomicJournalStore for PhysicalLsmJournalStore<W, P>

Source§

fn supports_durable_flush(&self) -> bool

Source§

fn read(&mut self, keys: &[String]) -> Result<Vec<JournalVersion>, LinkError>

Source§

fn compare_exchange( &mut self, keys: &[String], expected: &[JournalVersion], updates: &[Option<Vec<String>>], ) -> Result<bool, LinkError>

Source§

impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> Drop for PhysicalLsmJournalStore<W, P>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<W: ReplaceableTransitionLogStore, P: LsmTableNamespace> JournalMaintenanceStore for PhysicalLsmJournalStore<W, P>

Source§

fn scan_namespace( &mut self, options: JournalScanOptions, ) -> Result<Vec<JournalNamespaceEntry>, LinkError>

Source§

fn compare_delete( &mut self, key: &str, expected_generation: u64, ) -> Result<bool, LinkError>

Auto Trait Implementations§

§

impl<W, P> Freeze for PhysicalLsmJournalStore<W, P>
where W: Freeze, P: Freeze,

§

impl<W, P> RefUnwindSafe for PhysicalLsmJournalStore<W, P>

§

impl<W, P> Send for PhysicalLsmJournalStore<W, P>
where W: Send, P: Send, <P as LsmTableNamespace>::Device: Send,

§

impl<W, P> Sync for PhysicalLsmJournalStore<W, P>
where W: Sync, P: Sync, <P as LsmTableNamespace>::Device: Send,

§

impl<W, P> Unpin for PhysicalLsmJournalStore<W, P>
where W: Unpin, P: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.