Type Definition arrow_array::array::UInt16DictionaryArray
source · pub type UInt16DictionaryArray = DictionaryArray<UInt16Type>;
Expand description
A DictionaryArray
indexed by u16
Example: Using collect
let array: UInt16DictionaryArray = 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(), &UInt16Array::from(vec![0, 0, 1, 2]));
assert_eq!(array.values(), &values);
See DictionaryArray
for more information and examples