[−][src]Struct sstb::sstable::writer::SSTableWriterV2
SSTableWriterV2 writes SSTables to disk.
use sstb::sstable::{SSTableWriterV2, RawSSTableWriter}; let mut writer = SSTableWriterV2::new("/tmp/some-sstable").unwrap(); // Note that keys MUST be in sorted order. writer.set(b"aaa", b"some value for aaa"); writer.set(b"zzz", b"some value for zzz"); writer.finish().unwrap();
Methods
impl SSTableWriterV2
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
Make a new SSTable writer with default options.
pub fn new_with_options<P: AsRef<Path>>(
path: P,
options: &WriteOptions
) -> Result<Self>
[src]
path: P,
options: &WriteOptions
) -> Result<Self>
Make a new SSTable writer with explicit options.
pub fn finish(self) -> Result<()>
[src]
Write all the metadata to the sstable, and flush it.
Trait Implementations
impl RawSSTableWriter for SSTableWriterV2
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SSTableWriterV2
impl !Send for SSTableWriterV2
impl !Sync for SSTableWriterV2
impl Unpin for SSTableWriterV2
impl !UnwindSafe for SSTableWriterV2
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,