vortex_array::compute

Function filter

Source
pub fn filter(array: &ArrayData, mask: FilterMask) -> VortexResult<ArrayData>
Expand description

Return a new array by applying a boolean predicate to select items from a base Array.

§Performance

This function attempts to amortize the cost of copying

§Panics

The predicate must receive an Array with type non-nullable bool, and will panic if this is not the case.