Type Alias arrow::array::array::UInt8DictionaryArray

source ·
pub type UInt8DictionaryArray = DictionaryArray<UInt8Type>;
Expand description

A DictionaryArray indexed by u8

§Example: Using collect


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

See DictionaryArray for more information and examples

Aliased Type§

struct UInt8DictionaryArray { /* private fields */ }