Struct arrow::array::GenericListArray[][src]

pub struct GenericListArray<OffsetSize> { /* fields omitted */ }
Expand description

Generic struct for a primitive Array

For non generic lists, you may wish to consider using ListArray or LargeListArray`

Implementations

Returns a reference to the values of this list.

Returns a clone of the value type of this list.

Returns ith value of this list array.

Safety

Caller must ensure that the index is within the array bounds

Returns ith value of this list array.

Returns the offset values in the offsets buffer

Returns the length for value at index i.

constructs a new iterator

Creates a GenericListArray from an iterator of primitive values

Example

let data = vec![
   Some(vec![Some(0), Some(1), Some(2)]),
   None,
   Some(vec![Some(3), None, Some(5)]),
   Some(vec![Some(6), Some(7)]),
];
let list_array = ListArray::from_iter_primitive::<Int32Type, _, _>(data);
println!("{:?}", list_array);

Trait Implementations

Returns the total number of bytes of memory occupied by the buffers owned by this ListArray.

Returns the total number of bytes of memory occupied physically by this ListArray.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.