Function arrow::compute::build_filter

pub fn build_filter(
    filter: &BooleanArray
) -> Result<Box<dyn Fn(&ArrayData) -> ArrayData + '_>, ArrowError>
Expand description

Returns a prepared function optimized to filter multiple arrays. Creating this function requires time, but using it is faster than filter when the same filter needs to be applied to multiple arrays (e.g. a multi-column RecordBatch). WARNING: the nulls of filter are ignored and the value on its slot is considered. Therefore, it is considered undefined behavior to pass filter with null values.

Deprecated: Use FilterBuilder instead