pub struct Segment(/* private fields */);Expand description
Disk segment (a.k.a. SSTable, SST, sorted string table) that is located on disk
A segment is an immutable list of key-value pairs, split into compressed blocks.
A reference to the block (block handle) is saved in the “block index”.
Deleted entries are represented by tombstones.
Segments can be merged together to improve read performance and reduce disk space by removing outdated item versions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)