Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
as_boolean_array in datafusion::common::arrow::array - Rust
[go: Go Back, main page]

Function as_boolean_array

Source
pub fn as_boolean_array(arr: &dyn Array) -> &BooleanArray
Expand description

Force downcast of an Array, such as an ArrayRef to BooleanArray, panicking on failure.

ยงExample


let arr: ArrayRef = Arc::new(BooleanArray::from_iter(vec![Some(true)]));
let boolean_array = as_boolean_array(&arr);