pub struct SstFileWriter<'a> { /* private fields */ }
Expand description

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.

Implementations

Initializes SstFileWriter with given DB options.

Prepare SstFileWriter to write into file located at “file_path”.

Finalize writing to sst file and close file.

returns the current file size

Adds a Put key with value to currently opened file REQUIRES: key is after any previously added key according to comparator.

Adds a Merge key with value to currently opened file REQUIRES: key is after any previously added key according to comparator.

Adds a deletion key to currently opened file REQUIRES: key is after any previously added key according to comparator.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.