[][src]Struct rexrocksdb::rocksdb::SstFileWriter

pub struct SstFileWriter { /* fields omitted */ }

SstFileWriter is used to create sst files that can be added to database later All keys in files generated by SstFileWriter will have sequence number = 0

Methods

impl SstFileWriter[src]

pub fn new(env_opt: EnvOptions, opt: ColumnFamilyOptions) -> SstFileWriter[src]

pub fn new_cf(
    env_opt: EnvOptions,
    opt: ColumnFamilyOptions,
    cf: &CFHandle
) -> SstFileWriter
[src]

pub fn open(&mut self, name: &str) -> Result<(), String>[src]

Prepare SstFileWriter to write into file located at "file_path".

pub fn put(&mut self, key: &[u8], val: &[u8]) -> Result<(), String>[src]

Add key, value to currently opened file REQUIRES: key is after any previously added key according to comparator.

pub fn merge(&mut self, key: &[u8], val: &[u8]) -> Result<(), String>[src]

pub fn delete(&mut self, key: &[u8]) -> Result<(), String>[src]

pub fn finish(&mut self) -> Result<ExternalSstFileInfo, String>[src]

Finalize writing to sst file and close file.

pub fn file_size(&mut self) -> u64[src]

Trait Implementations

impl Send for SstFileWriter[src]

impl Drop for SstFileWriter[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]