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_run_array in datafusion::common::arrow::array - Rust
[go: Go Back, main page]

datafusion::common::arrow::array

Function as_run_array

Source
pub fn as_run_array<T>(arr: &dyn Array) -> &RunArray<T>
where T: RunEndIndexType,
Expand description

Force downcast of an Array, such as an ArrayRef to RunArray<T>, panic’ing on failure.

§Example


let arr: RunArray<Int32Type> = vec![Some("foo")].into_iter().collect();
let arr: ArrayRef = std::sync::Arc::new(arr);
let run_array: &RunArray<Int32Type> = as_run_array::<Int32Type>(&arr);