pub struct AliveSet { /* private fields */ }Expand description
Disjoint per-segment alive and tombstone bitmaps.
Implementations§
Source§impl AliveSet
impl AliveSet
Sourcepub fn tombstone(&mut self, document: u32) -> Result<bool, AliveError>
pub fn tombstone(&mut self, document: u32) -> Result<bool, AliveError>
Marks one live document as tombstoned.
Returns true only for the first tombstone of that identifier.
Sourcepub fn alive_bitmap(&self) -> &DocBitmap
pub fn alive_bitmap(&self) -> &DocBitmap
Returns the live-document bitmap.
Sourcepub fn tombstone_bitmap(&self) -> &DocBitmap
pub fn tombstone_bitmap(&self) -> &DocBitmap
Returns the tombstone bitmap.
Sourcepub fn live_count(&self) -> u64
pub fn live_count(&self) -> u64
Returns the exact live-document count.
Sourcepub fn tombstone_count(&self) -> u64
pub fn tombstone_count(&self) -> u64
Returns the exact tombstone count.
Sourcepub fn iter_alive(&self) -> impl Iterator<Item = u32> + '_
pub fn iter_alive(&self) -> impl Iterator<Item = u32> + '_
Iterates live document identifiers in ascending order.
Sourcepub fn debug_assert_consistent(&self)
pub fn debug_assert_consistent(&self)
Audits the disjoint-union counter invariant in debug builds.
Trait Implementations§
impl Eq for AliveSet
impl StructuralPartialEq for AliveSet
Auto Trait Implementations§
impl Freeze for AliveSet
impl RefUnwindSafe for AliveSet
impl Send for AliveSet
impl Sync for AliveSet
impl Unpin for AliveSet
impl UnsafeUnpin for AliveSet
impl UnwindSafe for AliveSet
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