[−][src]Struct rexrocksdb::rocksdb::SstFileWriter
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]
env_opt: EnvOptions,
opt: ColumnFamilyOptions,
cf: &CFHandle
) -> SstFileWriter
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
Auto Trait Implementations
impl !Sync for SstFileWriter
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,