Struct arrow2::array::growable::GrowableUnion
source · pub struct GrowableUnion<'a> { /* private fields */ }
Expand description
Concrete Growable
for the UnionArray
.
Implementations§
source§impl<'a> GrowableUnion<'a>
impl<'a> GrowableUnion<'a>
sourcepub fn new(arrays: Vec<&'a UnionArray>, capacity: usize) -> Self
pub fn new(arrays: Vec<&'a UnionArray>, capacity: usize) -> Self
Creates a new GrowableUnion
bound to arrays
with a pre-allocated capacity
.
Panics
Panics iff
arrays
is empty.- any of the arrays has a different
Trait Implementations§
source§impl<'a> From<GrowableUnion<'a>> for UnionArray
impl<'a> From<GrowableUnion<'a>> for UnionArray
source§fn from(val: GrowableUnion<'a>) -> Self
fn from(val: GrowableUnion<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Growable<'a> for GrowableUnion<'a>
impl<'a> Growable<'a> for GrowableUnion<'a>
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