pub struct LockFreeMemTable { /* private fields */ }Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Expand description
Lock-free memtable with hazard pointer protection
Implementationsยง
Sourceยงimpl LockFreeMemTable
impl LockFreeMemTable
Sourcepub fn new() -> Self
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn new() -> Self
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Create a new lock-free memtable
Sourcepub fn read(
&self,
key: &[u8],
snapshot_ts: u64,
txn_id: Option<u64>,
) -> Option<Vec<u8>>
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn read( &self, key: &[u8], snapshot_ts: u64, txn_id: Option<u64>, ) -> Option<Vec<u8>>
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Read a value at snapshot timestamp
This is a lock-free read protected by hazard pointers. Returns a cloned value for safety across hazard pointer boundaries.
Sourcepub fn read_with<F, R>(
&self,
key: &[u8],
snapshot_ts: u64,
txn_id: Option<u64>,
f: F,
) -> Option<R>
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn read_with<F, R>( &self, key: &[u8], snapshot_ts: u64, txn_id: Option<u64>, f: F, ) -> Option<R>
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Read a value at snapshot timestamp with zero-copy callback
This is an optimized read path that avoids cloning for inline values. The callback receives a reference to the value, avoiding allocation.
ยงArguments
key- The key to readsnapshot_ts- Snapshot timestamp for visibilitytxn_id- Current transaction ID (to see own uncommitted writes)f- Callback that receives the value reference
ยงReturns
The result of the callback, or None if key not found
Sourcepub fn write(
&self,
key: Vec<u8>,
value: Option<Vec<u8>>,
txn_id: u64,
) -> Result<()>
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn write( &self, key: Vec<u8>, value: Option<Vec<u8>>, txn_id: u64, ) -> Result<()>
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Write a value (creates uncommitted version)
Sourcepub fn commit(&self, txn_id: u64, commit_ts: u64, keys: &[Vec<u8>])
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn commit(&self, txn_id: u64, commit_ts: u64, keys: &[Vec<u8>])
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Commit a transactionโs writes
Sourcepub fn has_write_conflict(&self, key: &[u8], txn_id: u64) -> bool
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn has_write_conflict(&self, key: &[u8], txn_id: u64) -> bool
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Check for write conflict
Sourcepub fn size_bytes(&self) -> usize
๐Deprecated: Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn size_bytes(&self) -> usize
Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Get approximate size in bytes
Trait Implementationsยง
Sourceยงimpl Default for LockFreeMemTable
impl Default for LockFreeMemTable
impl Send for LockFreeMemTable
impl Sync for LockFreeMemTable
Auto Trait Implementationsยง
impl !Freeze for LockFreeMemTable
impl !RefUnwindSafe for LockFreeMemTable
impl Unpin for LockFreeMemTable
impl UnsafeUnpin for LockFreeMemTable
impl UnwindSafe for LockFreeMemTable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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