pub struct Sst { /* private fields */ }
Expand description
An Sst represents an immutable sorted string table.
Implementations§
source§impl Sst
impl Sst
sourcepub fn new<P: AsRef<Path>>(_options: SstOptions, path: P) -> Result<Self, Error>
pub fn new<P: AsRef<Path>>(_options: SstOptions, path: P) -> Result<Self, Error>
Open the provided path using options.
sourcepub fn from_file_handle(handle: FileHandle) -> Result<Self, Error>
pub fn from_file_handle(handle: FileHandle) -> Result<Self, Error>
Create an Sst from a file handle.
sourcepub fn approximate_size(&self) -> usize
pub fn approximate_size(&self) -> usize
Approximate size of the sst’s memory footprint.
sourcepub fn metadata(&self) -> Result<SstMetadata, Error>
pub fn metadata(&self) -> Result<SstMetadata, Error>
Get the Sst’s metadata. This will involve reading the first and last keys from disk.
sourcepub fn fast_setsum(&self) -> Setsum
pub fn fast_setsum(&self) -> Setsum
Return the setsum stored in the final block of the sst.
pub fn load( &self, key: &[u8], timestamp: u64, is_tombstone: &mut bool ) -> Result<Option<Vec<u8>>, Error>
pub fn range_scan<T: AsRef<[u8]>>( &self, start_bound: &Bound<T>, end_bound: &Bound<T>, timestamp: u64 ) -> Result<BoundsCursor<PruningCursor<SstCursor, Error>, Error>, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sst
impl Send for Sst
impl Sync for Sst
impl Unpin for Sst
impl UnwindSafe for Sst
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