Type Alias arrow_array::array::LargeStringArray

source ·
pub type LargeStringArray = GenericStringArray<i64>;
Expand description

A GenericStringArray of str using i64 offsets

§Examples

Construction

// Create from Vec<Option<&str>>
let arr = LargeStringArray::from(vec![Some("foo"), Some("bar"), None, Some("baz")]);
// Create from Vec<&str>
let arr = LargeStringArray::from(vec!["foo", "bar", "baz"]);
// Create from iter/collect (requires Option<&str>)
let arr: LargeStringArray = std::iter::repeat(Some("foo")).take(10).collect();

Construction and Access

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

See GenericByteArray for more information and examples

Aliased Type§

struct LargeStringArray { /* private fields */ }