Skip to main content

compact

Function compact 

Source
pub fn compact(
    arena: &mut MorselArena,
    v: &ValueVector,
    sel: &SelVector,
) -> ValueVector
Expand description

Compact a selected vector to a flat unselected one. Word-addressed types move 8 or 16 bytes per surviving row; validity compacts with the rows. Constant vectors just shrink their logical length.