Skip to main content

count_within_budget_offsets

Function count_within_budget_offsets 

Source
fn count_within_budget_offsets<T: ByteArrayType>(
    values: &GenericByteArray<T>,
    indices: &[usize],
    byte_budget: usize,
) -> usize
Expand description

Number of leading indices whose cumulative plain-encoded size fits byte_budget (boundary value included), for offset-buffer byte arrays (Utf8/LargeUtf8/Binary/LargeBinary).

indices come from non_null_indices. They are strictly increasing for most arrays, but a ListView can reference its child values in any order and more than once.