Struct polars_arrow::builder::PrimitiveArrayBuilder[][src]

pub struct PrimitiveArrayBuilder<T> where
    T: ArrowPrimitiveType,
    T::Native: Default
{ /* fields omitted */ }

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]

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]

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]

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]

Build the array and reset this Builder

Trait Implementations

impl<T> ArrayBuilder for PrimitiveArrayBuilder<T> where
    T: ArrowPrimitiveType
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,