arrow_array::array

Type Alias Int32DictionaryArray

Source
pub type Int32DictionaryArray = DictionaryArray<Int32Type>;
Expand description

A DictionaryArray indexed by i32

§Example: Using collect


let array: Int32DictionaryArray = vec!["a", "a", "b", "c"].into_iter().collect();
let values: Arc<dyn Array> = Arc::new(StringArray::from(vec!["a", "b", "c"]));
assert_eq!(array.keys(), &Int32Array::from(vec![0, 0, 1, 2]));
assert_eq!(array.values(), &values);

See DictionaryArray for more information and examples

Aliased Type§

struct Int32DictionaryArray { /* private fields */ }