pub struct SstFileWriter { /* private fields */ }
Expand description
SST file writer that matches RocksDB’s SstFileWriter API
Implementations§
Source§impl SstFileWriter
impl SstFileWriter
Sourcepub fn create(opts: &WriteOptions) -> Self
pub fn create(opts: &WriteOptions) -> Self
Create a new SstFileWriter with the given options
Sourcepub fn put<K, V>(&mut self, key: K, value: V) -> Result<()>
pub fn put<K, V>(&mut self, key: K, value: V) -> Result<()>
Add a key-value pair to the SST file
Sourcepub fn merge<K, V>(&mut self, key: K, value: V) -> Result<()>
pub fn merge<K, V>(&mut self, key: K, value: V) -> Result<()>
Add a merge entry to the SST file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SstFileWriter
impl RefUnwindSafe for SstFileWriter
impl Send for SstFileWriter
impl Sync for SstFileWriter
impl Unpin for SstFileWriter
impl UnwindSafe for SstFileWriter
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