pub fn slice_batch_by_vnodes(
batch: &RecordBatch,
row_vnodes: &[u32],
) -> Vec<(u32, RecordBatch)>Expand description
Slice batch by vnodes in a single pass, returning a vector of (vnode, RecordBatch).
Avoids the $O(V \times R)$ loop and allocations of vnode-by-vnode slicing.
§Panics
Panics if take or rebuild fails — only on internal-invariant violations.