pub enum DeletionVector {
NoDeletions,
Set(HashSet<u32>),
Bitmap(RoaringBitmap),
}
Expand description
Represents a set of deleted row offsets 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 iter(&self) -> Box<dyn Iterator<Item = u32> + Send + '_>
pub fn into_sorted_iter(self) -> Box<dyn Iterator<Item = u32> + Send + 'static>
Sourcepub fn to_sorted_iter<'a>(&'a self) -> Box<dyn Iterator<Item = u32> + Send + 'a>
pub fn to_sorted_iter<'a>(&'a self) -> Box<dyn Iterator<Item = u32> + Send + 'a>
Create an iterator that iterates over the values in the deletion vector in sorted order.
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 DeletionVector {
pub fn get(i: u32) -> bool { … }
}
impl BitAnd for DeletionVector { … }
impl IntoIterator for DeletionVector
impl DeletionVector { pub fn get(i: u32) -> bool { … } } impl BitAnd for DeletionVector { … }
Source§impl PartialEq for DeletionVector
impl PartialEq 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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