Struct lsm_tree::compaction::Input
source · pub struct Input {
pub segment_ids: Vec<Arc<str>>,
pub dest_level: u8,
pub target_size: u64,
}
Expand description
Input for compactor.
The compaction strategy chooses which segments to compact and how. That information is given to the compactor.
Fields§
§segment_ids: Vec<Arc<str>>
Segments to compact
dest_level: u8
Level to put the created segments into
target_size: u64
Segment target size
If a segment compaction reaches the level, a new segment is started. This results in a sorted “run” of segments
Trait Implementations§
source§impl PartialEq for Input
impl PartialEq for Input
impl Eq for Input
impl StructuralEq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.