MCPcopy Create free account
hub / github.com/apache/arrow-rs / as_map

Method as_map

arrow-array/src/cast.rs:962–964  ·  view source on GitHub ↗

Downcast this to a [`MapArray`] panicking if not possible

(&self)

Source from the content-addressed store, hash-verified

960
961 /// Downcast this to a [`MapArray`] panicking if not possible
962 fn as_map(&self) -> &MapArray {
963 self.as_map_opt().expect("map array")
964 }
965
966 /// Downcast this to a [`DictionaryArray`] returning `None` if not possible
967 fn as_dictionary_opt<K: ArrowDictionaryKeyType>(&self) -> Option<&DictionaryArray<K>>;

Callers 8

cast_with_optionsFunction · 0.80
newMethod · 0.80
try_newMethod · 0.80
test_map_arrayFunction · 0.80
compare_mapFunction · 0.80
test_mapFunction · 0.80

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_map_optMethod · 0.80

Tested by 4

test_map_arrayFunction · 0.64
test_mapFunction · 0.64