pub struct Input {
pub segment_ids: HashSet<SegmentId, Xxh3Builder>,
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: HashSet<SegmentId, Xxh3Builder>
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§
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.