pub struct SSTableWriter { /* private fields */ }Expand description
SSTable writer - creates new SSTable files
Implementations§
Source§impl SSTableWriter
impl SSTableWriter
Sourcepub fn with_block_size(
path: impl AsRef<Path>,
block_size: usize,
) -> Result<SSTableWriter, Error>
pub fn with_block_size( path: impl AsRef<Path>, block_size: usize, ) -> Result<SSTableWriter, Error>
Create a new SSTable writer with custom block size
Sourcepub fn finish(self) -> Result<SSTableMeta, Error>
pub fn finish(self) -> Result<SSTableMeta, Error>
Finish writing and close the SSTable
Sourcepub fn from_memtable<I>(
path: impl AsRef<Path>,
iter: I,
) -> Result<SSTableMeta, Error>
pub fn from_memtable<I>( path: impl AsRef<Path>, iter: I, ) -> Result<SSTableMeta, Error>
Build an SSTable from a memtable
Auto Trait Implementations§
impl Freeze for SSTableWriter
impl RefUnwindSafe for SSTableWriter
impl Send for SSTableWriter
impl Sync for SSTableWriter
impl Unpin for SSTableWriter
impl UnwindSafe for SSTableWriter
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