Skip to main content

variable_shape_tensor_iter_masked

Function variable_shape_tensor_iter_masked 

Source
pub fn variable_shape_tensor_iter_masked<'a, T>(
    field: &Field,
    array: &'a StructArray,
) -> Result<(VariableShapeTensorIter<'a, T>, Option<&'a NullBuffer>), NdarrowError>
Expand description

Creates an iterator over per-row zero-copy ndarray views for arrow.variable_shape_tensor together with the outer validity buffer.

§Does not allocate

This borrows Arrow values buffers directly. Iterator row shape decoding uses small per-row shape vectors.

§Errors

Returns an error if extension/type invariants are violated or if child storage arrays carry nulls.

§Semantics

When the returned validity buffer marks a row as null, the iterator still yields a physical row view for that position. Callers must consult the validity buffer before interpreting a row.