pub struct StructuredWriteBatch { /* private fields */ }Expand description
Structured write batch wrapper.
Each operation is encoded and written into the inner cobble::WriteBatch immediately, so we
avoid a second typed-op staging buffer and an extra conversion pass at flush time.
Implementations§
Source§impl StructuredWriteBatch
impl StructuredWriteBatch
pub fn put<K, V>( &mut self, bucket: u16, key: K, column: u16, value: V, ) -> Result<()>
pub fn put_with_options<K, V>( &mut self, bucket: u16, key: K, column: u16, value: V, options: &WriteOptions, ) -> Result<()>
pub fn delete<K>(&mut self, bucket: u16, key: K, column: u16)
pub fn merge<K, V>( &mut self, bucket: u16, key: K, column: u16, value: V, ) -> Result<()>
pub fn merge_with_options<K, V>( &mut self, bucket: u16, key: K, column: u16, value: V, options: &WriteOptions, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for StructuredWriteBatch
impl RefUnwindSafe for StructuredWriteBatch
impl Send for StructuredWriteBatch
impl Sync for StructuredWriteBatch
impl Unpin for StructuredWriteBatch
impl UnsafeUnpin for StructuredWriteBatch
impl UnwindSafe for StructuredWriteBatch
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> 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