StructArray


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.4.0" ) ]
public StructArray (DataType data_type, int64 length, List<Array> fields, Buffer? null_bitmap, int64 n_nulls)

Parameters:

data_type

The data type of the struct.

length

The number of elements.

fields

The arrays for each field as List of Array.

null_bitmap

The bitmap that shows null elements. The N-th element is null when the N-th bit is 0, not null otherwise. If the array has no null elements, the bitmap must be null and n_nulls is 0.

n_nulls

The number of null elements. If -1 is specified, the number of nulls are computed from null_bitmap.

Returns:

A newly created StructArray.