Struct arrow::array::MapArray [−][src]
pub struct MapArray { /* fields omitted */ }
Expand description
A nested array type where each record is a key-value map. Keys should always be non-null, but values can be null.
MapArray is physically a [ListArray] that has a [StructArray] with 2 child fields.
Implementations
Returns the data type of the map’s values.
Returns ith value of this map array.
Safety
Caller must ensure that the index is within the array bounds
Returns the offset values in the offsets buffer
Returns the length for value at index i
.
Trait Implementations
Returns the total number of bytes of memory occupied by the buffers owned by this MapArray.
Returns the total number of bytes of memory occupied physically by this MapArray.
Returns a reference-counted pointer to the underlying data of this array.
Returns a zero-copy slice of this array with the indicated offset and length. Read more
Returns the offset into the underlying data used by this array(-slice).
Note that the underlying data can be shared by many arrays.
This defaults to 0
. Read more
Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
Returns whether the element at index
is not null.
When using this function on a slice, the index is relative to the slice. Read more
Returns the total number of null values in this array. Read more
returns two pointers that represent this array in the C Data Interface (FFI)