Enum lance_core::utils::deletion::DeletionVector
source · pub enum DeletionVector {
NoDeletions,
Set(HashSet<u32>),
Bitmap(RoaringBitmap),
}Expand description
Represents a set of deleted row ids in a single fragment.
Variants§
Implementations§
source§impl DeletionVector
impl DeletionVector
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, i: u32) -> bool
pub fn contains_range(&self, range: Range<u32>) -> bool
pub fn into_sorted_iter(self) -> Box<dyn Iterator<Item = u32> + Send + 'static>
pub fn build_predicate(&self, row_ids: Iter<'_, u64>) -> Option<BooleanArray>
Trait Implementations§
source§impl Clone for DeletionVector
impl Clone for DeletionVector
source§fn clone(&self) -> DeletionVector
fn clone(&self) -> DeletionVector
Returns a copy 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 DeletionVector
impl Debug for DeletionVector
source§impl DeepSizeOf for DeletionVector
impl DeepSizeOf for DeletionVector
source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
source§impl Default for DeletionVector
impl Default for DeletionVector
source§impl Extend<u32> for DeletionVector
impl Extend<u32> for DeletionVector
source§fn extend<T: IntoIterator<Item = u32>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = u32>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl From<&DeletionVector> for RoaringBitmap
impl From<&DeletionVector> for RoaringBitmap
source§fn from(value: &DeletionVector) -> Self
fn from(value: &DeletionVector) -> Self
Converts to this type from the input type.
source§impl FromIterator<u32> for DeletionVector
impl FromIterator<u32> for DeletionVector
source§impl IntoIterator for DeletionVector
impl IntoIterator for DeletionVector
impl DeletionVector { pub fn get(i: u32) -> bool { … } } impl BitAnd for DeletionVector { … }
Auto Trait Implementations§
impl Freeze for DeletionVector
impl RefUnwindSafe for DeletionVector
impl Send for DeletionVector
impl Sync for DeletionVector
impl Unpin for DeletionVector
impl UnwindSafe for DeletionVector
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more