arrow::array::array

Type Alias UInt32DictionaryArray

pub type UInt32DictionaryArray = DictionaryArray<UInt32Type>;
Expand description

A DictionaryArray indexed by u32

§Example: Using collect


let array: UInt32DictionaryArray = 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(), &UInt32Array::from(vec![0, 0, 1, 2]));
assert_eq!(array.values(), &values);

See DictionaryArray for more information and examples

Aliased Type§

struct UInt32DictionaryArray { /* private fields */ }