Struct arrow2::array::growable::GrowablePrimitive
source · pub struct GrowablePrimitive<'a, T: NativeType> { /* private fields */ }
Expand description
Concrete Growable
for the PrimitiveArray
.
Implementations§
source§impl<'a, T: NativeType> GrowablePrimitive<'a, T>
impl<'a, T: NativeType> GrowablePrimitive<'a, T>
sourcepub fn new(
arrays: Vec<&'a PrimitiveArray<T>>,
use_validity: bool,
capacity: usize
) -> Self
pub fn new(
arrays: Vec<&'a PrimitiveArray<T>>,
use_validity: bool,
capacity: usize
) -> Self
Creates a new GrowablePrimitive
bound to arrays
with a pre-allocated capacity
.
Panics
If arrays
is empty.
Trait Implementations§
source§impl<'a, T: NativeType> From<GrowablePrimitive<'a, T>> for PrimitiveArray<T>
impl<'a, T: NativeType> From<GrowablePrimitive<'a, T>> for PrimitiveArray<T>
source§fn from(val: GrowablePrimitive<'a, T>) -> Self
fn from(val: GrowablePrimitive<'a, T>) -> Self
Converts to this type from the input type.
source§impl<'a, T: NativeType> Growable<'a> for GrowablePrimitive<'a, T>
impl<'a, T: NativeType> Growable<'a> for GrowablePrimitive<'a, T>
source§fn extend_validity(&mut self, additional: usize)
fn extend_validity(&mut self, additional: usize)
Extends this
Growable
with null elements, disregarding the bound arrays