pub struct SelVector { /* private fields */ }Implementations§
Source§impl SelVector
impl SelVector
Sourcepub fn with_capacity(arena: &mut MorselArena, cap: usize) -> Self
pub fn with_capacity(arena: &mut MorselArena, cap: usize) -> Self
Allocate an empty selection with room for cap indices.
Sourcepub fn from_bitmap(arena: &mut MorselArena, bits: &Bitmap) -> Self
pub fn from_bitmap(arena: &mut MorselArena, bits: &Bitmap) -> Self
Build a selection from the set bits of a predicate bitmap. This is the bitmap_to_sel kernel: one trailing_zeros loop per word, no per-bit branch on the clear bits. Output offsets are popcounted up front so the extraction chains of different words carry no dependence on each other and overlap in the out-of-order window; that roughly halves the latency at dense selectivities.
Sourcepub fn refine(arena: &mut MorselArena, sel: &SelVector, bits: &Bitmap) -> Self
pub fn refine(arena: &mut MorselArena, sel: &SelVector, bits: &Bitmap) -> Self
Refine an existing selection by a bitmap evaluated over the same
chunk positions: keep index i when bits holds at sel[i]’s row.
pub fn push(&mut self, row: u16)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[u16]
Auto Trait Implementations§
impl Freeze for SelVector
impl RefUnwindSafe for SelVector
impl Send for SelVector
impl Sync for SelVector
impl Unpin for SelVector
impl UnsafeUnpin for SelVector
impl UnwindSafe for SelVector
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