Type Alias arrow_array::array::Float32Array

source ·
pub type Float32Array = PrimitiveArray<Float32Type>;
Expand description

A PrimitiveArray of f32

§Examples

Construction

// Create from Vec<Option<f32>>
let arr = Float32Array::from(vec![Some(1.0), None, Some(2.0)]);
// Create from Vec<f32>
let arr = Float32Array::from(vec![1.0, 2.0, 3.0]);
// Create iter/collect
let arr: Float32Array = std::iter::repeat(42.0).take(10).collect();

See PrimitiveArray for more information and examples

Aliased Type§

struct Float32Array { /* private fields */ }