Struct polars_arrow::builder::PrimitiveArrayBuilder [−][src]
pub struct PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
T::Native: Default, { /* fields omitted */ }
Expand description
An arrow primitive builder that is faster than Arrow’s native builder because it uses Rust Vec’s as buffer
Implementations
impl<T> PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
T::Native: Default,
[src]
impl<T> PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
T::Native: Default,
[src]pub fn new(capacity: usize) -> Self
[src]
pub fn new_no_nulls(capacity: usize) -> Self
[src]
pub fn append_value(&mut self, v: T::Native)
[src]
pub fn append_value(&mut self, v: T::Native)
[src]Appends a value of type T::Native
into the builder
pub fn append_slice(&mut self, other: &[T::Native])
[src]
pub fn append_null(&mut self)
[src]
pub fn append_null(&mut self)
[src]Appends a null slot into the builder
pub fn shrink_to_fit(&mut self)
[src]
pub fn finish_with_null_buffer(&mut self, buffer: Buffer) -> PrimitiveArray<T>
[src]
pub fn finish(&mut self) -> PrimitiveArray<T>
[src]
pub fn finish(&mut self) -> PrimitiveArray<T>
[src]Build the array and reset this Builder
Trait Implementations
impl<T> ArrayBuilder for PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
[src]
impl<T> ArrayBuilder for PrimitiveArrayBuilder<T> where
T: ArrowPrimitiveType,
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference. Read more
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
Auto Trait Implementations
impl<T> RefUnwindSafe for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for PrimitiveArrayBuilder<T>
impl<T> Sync for PrimitiveArrayBuilder<T>
impl<T> Unpin for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: Unpin,
<T as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnwindSafe for PrimitiveArrayBuilder<T> where
<T as ArrowPrimitiveType>::Native: UnwindSafe,
<T as ArrowPrimitiveType>::Native: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,