pub struct CompactionResult {
pub old_segment_id: u64,
pub new_segment_id: Option<u64>,
pub vectors_removed: u64,
pub space_reclaimed: u64,
}Expand description
Result of compacting a segment (physical deletion of logically deleted rows).
Provides the old/new segment IDs and a summary of how much data was removed.
Fields§
§old_segment_id: u64コンパクション対象の旧セグメントID。
new_segment_id: Option<u64>新しく生成されたセグメントID(全削除時は None)。
vectors_removed: u64削除されたベクトル数(旧セグメントとの差分)。
space_reclaimed: u64概算回収バイト数(旧サイズ - 新サイズ、非負)。
Trait Implementations§
Source§impl Clone for CompactionResult
impl Clone for CompactionResult
Source§fn clone(&self) -> CompactionResult
fn clone(&self) -> CompactionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompactionResult
impl Debug for CompactionResult
Source§impl PartialEq for CompactionResult
impl PartialEq for CompactionResult
impl Eq for CompactionResult
impl StructuralPartialEq for CompactionResult
Auto Trait Implementations§
impl Freeze for CompactionResult
impl RefUnwindSafe for CompactionResult
impl Send for CompactionResult
impl Sync for CompactionResult
impl Unpin for CompactionResult
impl UnwindSafe for CompactionResult
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