Type Definition arrow_array::array::UInt64DictionaryArray

source ·
pub type UInt64DictionaryArray = DictionaryArray<UInt64Type>;
Expand description

A DictionaryArray indexed by u64

Example: Using collect


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

See DictionaryArray for more information and examples