Type Definition arrow::array::UInt32DictionaryArray
source · [−]pub type UInt32DictionaryArray = DictionaryArray<UInt32Type>;
Expand description
A dictionary array where each element is a single value indexed by an integer key.
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);