pub struct MapArray { /* private fields */ }
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 crate::array::ListArray that has a crate::array::StructArray with 2 child fields.

Implementations

Returns a reference to the keys of this map.

Returns a reference to the values of this map.

Returns the data type of the map’s keys.

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 ith value of this map array.

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 the array as Any so that it can be downcasted to a specific implementation. Read more

Returns a reference to the underlying data of this array.

Returns a reference-counted pointer to the underlying data of this array.

Returns a reference to the DataType of this array. Read more

Returns a zero-copy slice of this array with the indicated offset and length. Read more

Returns the length (i.e., number of elements) of this array. Read more

Returns whether this array is empty. 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)

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Checks whether arrow array equals to json array.

Checks whether arrow array equals to json array.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.