Type Alias arrow_array::array::Decimal256Array
source · pub type Decimal256Array = PrimitiveArray<Decimal256Type>;
Expand description
A PrimitiveArray
of 256-bit fixed point decimals
Examples
Construction
use arrow_buffer::i256;
// Create from Vec<Option<i256>>
let arr = Decimal256Array::from(vec![Some(i256::from(1)), None, Some(i256::from(2))]);
// Create from Vec<i256>
let arr = Decimal256Array::from(vec![i256::from(1), i256::from(2), i256::from(3)]);
// Create iter/collect
let arr: Decimal256Array = std::iter::repeat(i256::from(42)).take(10).collect();
See PrimitiveArray
for more information and examples
Aliased Type§
struct Decimal256Array { /* private fields */ }