Skip to main content

narrow_batch

Function narrow_batch 

Source
fn narrow_batch(
    batch: &RecordBatch,
    filter: &BooleanArray,
    true_count: usize,
) -> Result<RecordBatch, ArrowError>
Expand description

Restrict batch to the rows filter accepts, slicing zero-copy when they form one contiguous range and compacting otherwise.

filter must be null-free and accept some but not all rows.