Type Definition arrow_array::array::Int16DictionaryArray

source ·
pub type Int16DictionaryArray = DictionaryArray<Int16Type>;
Expand description

A DictionaryArray indexed by i16

Example: Using collect


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

See DictionaryArray for more information and examples