pub struct PrimitiveBuilder<T: NativePType> { /* private fields */ }
Implementations§
Source§impl<T: NativePType + 'static> PrimitiveBuilder<T>
impl<T: NativePType + 'static> PrimitiveBuilder<T>
pub fn new(nullability: Nullability) -> Self
pub fn with_capacity(nullability: Nullability, capacity: usize) -> Self
pub fn append_value(&mut self, value: T)
pub fn append_option(&mut self, value: Option<T>)
Trait Implementations§
Source§impl<T: NativePType + 'static> ArrayBuilder for PrimitiveBuilder<T>
impl<T: NativePType + 'static> ArrayBuilder for PrimitiveBuilder<T>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn dtype(&self) -> &DType
fn len(&self) -> usize
Source§fn append_zeros(&mut self, n: usize)
fn append_zeros(&mut self, n: usize)
Appends n “zero” values to the array.
Source§fn append_nulls(&mut self, n: usize)
fn append_nulls(&mut self, n: usize)
Appends n “null” values to the array.
fn finish(&mut self) -> VortexResult<ArrayData>
fn is_empty(&self) -> bool
Source§fn append_zero(&mut self)
fn append_zero(&mut self)
Append a “zero” value to the array.
Source§fn append_null(&mut self)
fn append_null(&mut self)
Append a “null” value to the array.
Auto Trait Implementations§
impl<T> Freeze for PrimitiveBuilder<T>
impl<T> RefUnwindSafe for PrimitiveBuilder<T>
impl<T> Send for PrimitiveBuilder<T>
impl<T> Sync for PrimitiveBuilder<T>
impl<T> Unpin for PrimitiveBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveBuilder<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArrayBuilderExt for Twhere
T: ArrayBuilder + ?Sized,
impl<T> ArrayBuilderExt for Twhere
T: ArrayBuilder + ?Sized,
Source§fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>
fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>
A generic function to append a scalar to the builder.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more