Type Definition arrow::array::StringArray

source ·
pub type StringArray = GenericByteArray<GenericStringType<i32>>;
Expand description

An array where each element is a variable-sized sequence of bytes representing a string whose maximum length (in bytes) is represented by a i32.

Example

use arrow_array::StringArray;
let array = StringArray::from(vec![Some("foo"), None, Some("bar")]);
assert_eq!(array.value(0), "foo");